[Trunk/70/61/60/50] Workflow transitions on core modules should be pluggable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 3 |
Bug Description
Most workflow transition condition are set as "True" and I think it is wrong because it prevents (or at least makes it difficult) from implementing validations in transitions. For example in a model "account.voucher" is impossible to avoid a ban payment to a partner or any other validation required, also applies to "account.invoice", from "draft" to "open" can not validate anything. The right thing should be for all transitions point to methods that return "True" by default maken then inheritable inherit and allowing to implement the required specifications.
Attached is a module [V6.0] that I had to develop to implement these Hits on "account.voucher"
https:/
Changed in openobject-addons: | |
status: | Incomplete → New |
summary: |
- [Trunk/70/61/60/50] Workflow transitions omitted + [Trunk/70/61/60/50] Workflow transitions should be pluggable |
summary: |
- [Trunk/70/61/60/50] Workflow transitions should be pluggable + [Trunk/70/61/60/50] Workflow transitions on core modules should be + pluggable |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
Hello Juan,
I have checked the workflow of account voucher and its working fine, Would you please tell us where you faced the problem.
Thank you!