Recent Updates
Saturday, 23 April 2016

Remove a field from Messages and communication history in ODOO

4/23/2016 11:26:00 am
To remove a field from Messages and Communication history in Odoo models you can set the attribute track_visibility='none' in the field definition.

For example to remove the 'Expected Revenue' in opportunity form view's messages and communication history you can do the following:

For removing the Expected Revenue(planned_revenue) field we have inherit the crm_lead model and override the planned_revenue field.

class CrmLead(models.Model):
    _inherit = 'crm.lead'
planned_revenue = fields.Float(string='Expected Revenue', track_visibility='none') #Expected revenue field.

After upgrading the module the field expected revenue will not be tracked on making changes to the table.


Post a Comment

Toggle Footer