Hi. I want to create an automated action based on product move model and then change a setting in the Lot/Serial model.
Here is my scenario:
I have an item with serial number 123456 and i want to move from location A to location B.
I Have created a model called Serial Condition and i have the following values
1. Defective
2. Good
i would like to know how to write the python code so i change the condition on the serial number when i move it from A to B.
Im kinda stuck.
TIA
Have you made any attempts? Do you have examples of what didn't work for you?
i have created a server action and i want to call it from the automated action but I'm stuck.
action = { "type": "ir.actions.server", "id": 8, }
This is my line in my automated action and im calling ID:8 (my server action)
I don't get any errors but it doesn't run either