Hi,
I have created a module with a tree view and some data inside.
Now i want to add new data each time an invoice is paid (payment_state == "paid").
The problem is that i tried to override the create function, the write, tried the @api.onchange but during all of them i never see the payment_state changing to "paid" (sometimes it is "not_paid" and sometimes it gets "False") and it magically happens i don't know where during the process.
Also @api.onchange never printed out the test print that i put in the function so i assume it wasn't even called ??
If you need more details feel free to ask. thank you.
Note : I am using Odoo 17 community