Add hooks to the merge PO feature.
by Camptocamp http://www.camptocamp.com/ , Odoo Community Association (OCA) http://www.camptocamp.com/
Odoo
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Purchase Management (purchase)
• Warehouse Management (stock) • Social Network (mail) |
Technical Name |
purchase_group_hooks |
License | AGPL-3 |
Website | http://www.camptocamp.com/ |
Repository | lp:purchase-wkfl/7.0 |
In the core OpenERP purchase module, there is a wizard to merge purchase orders. That feature is convenient, but as soon as a field is added to the purchase order, it does not work anymore and needs to be patched. The original implementation does not provide any hooks for extension, and modules can only reimplement a method completely. This required a lot of copy and paste, and worse, it breaks if two modules attempt to do that.
Therefore, this module reimplements the feature, with the same basic result in the standard case. Hooks are provided for extra modules that add fields or change the logic.
Please log in to comment on this module