Tracking existing fields using Odoo Studio

It’s not possible to add tracking to a ‘base’ field without customization. However, it seems that it may be possible to do it using an Automated Action. This is from Ray Carnes on the Odoo Help Forum:

for record in records:

Here’s a simple way to do it using Odoo Studio. This uses a computed field.

In this example we will track the parent company for an individual contact.

Firstly, add a new text field.

Then (in Developer Mode), click on MORE (in the bottom left hand corner) to display field information.

Tracking: On Change (or ‘1’ in Odoo 14 onwards)

Dependencies: name, parent_id, parent_name


for record in self:
     if record['parent_id']:
         record['x_studio_history'] = + ' / Company: ' + record.parent_name

Now any changes are shown in the “chatter” at the bottom of the screen (or the right-hand side on a wide screen):

If it’s working well, we can make the new field invisible on the Form View:

Note: you could do this without Odoo Studio by creating the field in Settings / Technical / (Database Structure) / Fields:

Model is Contact (res.partner)

5 thoughts on “Tracking existing fields using Odoo Studio

    1. Yes. I had to check because I assumed it was already tracked, but only the total amount is NOT tracked!


      1. OK, I misunderstood. I thought you meant prices on sales orders.

        It should work fine on tracking the sales price on product.template (though I haven’t tried it myself)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s