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.
After upgrading the module the field expected revenue will not be tracked on making changes to the table.
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.
This is not working in odoo11
ReplyDeleteWell described post. Thanks for sharing such great information.Inwizards Inc is a Odoo Development company India offers quality Odoo Development services best in Web App industries. Intrested click here:
ReplyDeleteOdoo Development Company India |
Hire Odoo developers India