This question has been flagged
1 Reply
4898 Views

Neither of these actions updates the write_date of the corresponding record.


How can I change this behavior?

Avatar
Discard
Best Answer

I have not investigated any performance implications of doing this.

You should test if/how this affects performance because notes are also added by Odoo when specific conditions are met (record confirmed, edited) AND when Customers reply to emails.

Create the following Automated Action:



for record in records:
  if record.model:
    lead_to_update = env[record.model].search([('id','=',record.res_id)]).write({'write_date': datetime.datetime.now()})
Avatar
Discard