odoo version 16.
How can I AUTO CONFIRM quotations if the Tab quotation:
Other info > Tracking > Source Document (field: origin) have the string "auto_confirm"?
I try to create an Automate Actions with the next values:
Model: Quotation Template
Trigger: On
Creation Apply on: all records
Action To Do: Execute Python CodePython
Code: /ORIGIN = 'auto_confirm'if record.origin: record['origin'] = ORIGIN self.action_confirm()
Thanks!