Hello Odoo Community:
I'd like to create an automated action in model sale.order.inherited, in which every time (on creation and update) the field "name" has a keyword "sample", the invoice.status will change to "no" (nothing to invoice); before update, "name" is not set; after update, "name" (order.reference) contains "sample"; I have tried update the record -->invoice.status--> value --> no, but it doesn't work; I'd like to try execute the python code, would you please help me write the code
["invoice_status","=","no"]
Thanks a lot