Viewing posts for the category Python
To optimize workflow (and avoid mistakes) I wanted to set a default account(ing) category so that tax,.. is set by default. Took a little bit of experimenting, but I got it:
Since Tryton 6.0 had the awesome product kit module added I saved a lot of time and only had to add some custom logic for my extra fields.
This is more of a test post, but also keep in mind when upgrading python versions to also remove version numbers on some of the requirements.txt stuff ..
Upgrading Tryton from 5.8 to 6.0 was nearly completely painless - in part due to the fact I am only using a few modules so far (and my custom module is not too big either).
I added a Boolean field to SaleLine - one that is not shown to the user but only set in the code as a flag. As the readonly state of just about all my custom fields should depend on that I added: