Skip to Content
Menu
This question has been flagged
1 Reply
5307 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
Related Posts Replies Views Activity
2
Dec 24
301
0
Nov 24
79
3
May 24
2880
0
Jan 24
1350
1
Oct 23
1300