purchase order merge limits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 1 |
Bug Description
Not a bug, but suggestion for improvement.
I have added a few fields to purchase.order using my own module in v 7.0.
When I try to use do_merge on the purchase orders I created, the custom fields are not written to the new purchase order.
Unfortunately, the function do_merge does all in one and returns when everything is finished.
It would be nice to split up the function into several functions, one of which is responsible to set the values of the dictionary to compare / merge.
Another function should define which fields should be compared to decide whether to merge or not. And so on.
That would simplify the possibility to customize.
And having read https:/
Related branches
- Yannick Vaucher @ Camptocamp: Approve (code review, no test)
- martin (community): Approve
- Pedro Manuel Baeza: Abstain
- Alexandre Fayolle - camptocamp: Approve (code review, no test)
- Romain Deheele - Camptocamp (community): Abstain
-
Diff: 480 lines (+448/-0)6 files modifiedpurchase_group_hooks/__init__.py (+22/-0)
purchase_group_hooks/__openerp__.py (+47/-0)
purchase_group_hooks/purchase_group_hooks.py (+236/-0)
purchase_group_hooks/test/merge_order.yml (+41/-0)
purchase_group_hooks/tests/__init__.py (+26/-0)
purchase_group_hooks/tests/test_merge_po.py (+76/-0)
- Leonardo Pistone (community): Disapprove (in github)
- Olivier Dony (Odoo): Needs Fixing (technical+functional)
- Alexandre Fayolle - camptocamp (community): Approve (code review, no test)
-
Diff: 438 lines (+302/-105)3 files modifiedpurchase/purchase.py (+194/-105)
purchase/tests/__init__.py (+26/-0)
purchase/tests/test_merge_po.py (+82/-0)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
importance: | Undecided → Wishlist |
status: | Incomplete → Confirmed |
Hello Martin,
Could not understand your bug report properly, Would you please provide the more information on this like which kind of output you got and what is your expected behavior etc.
Thank you and waiting for your reply!