Skip to Content
Menu
This question has been flagged
1 Reply
4632 Views

Hi,

I want the exact time of approval of a form to be displayed in the log form.

track_visibility a button?

please help me.

Thanks.

Avatar
Discard
Best Answer

Hi,
  track_visibility is not a button. if you want to know each and every detail when you change a state add track_visibility='onchange' on your field definition.ie for eg:
state = fields.Selection([
        ('draft', 'Draft'),
        ('pending', 'Pending'),
        ('authorized', 'Authorized'),
        ('done', 'Done'),
        ('refunding', 'Refunding'),
        ('refunded', 'Refunded'),
        ('error', 'Error'),
        ('cancel', 'Canceled')], 'Status',
        copy=False, default='draft',track_visibility='onchange')
if you are using Odoo 13 we use  tracking=True
just have a look at the https://www.odoo.com/documentation/13.0/reference/mixins.html

Avatar
Discard