Hello everyone,
Can anyone give me some help or clarification?
Well, that's how it is, I created a button that makes a connection between receipts and subcontracting within stock.picking, now I need this button to have the color according to the status of that shipment, for example it can appear in the reception as ready, but in the subcontracting as done, so I wanted this button to appear in green already inside the receipts, it turns out that I created the method below, as you can see but it is not working, I don't know what is missing or what is wrong. The colors would be done=green, cancel=red and the other states yellow.
Thanks in advance for help. Thanks.
My XML
And my file.py
Thank you very much, it was really only in this way that it worked... :)