Merge lp:~akretion-team/openobject-addons/trunk-addons-mrp-perf-improve into lp:openobject-addons
Status: | Merged |
---|---|
Merged at revision: | 7652 |
Proposed branch: | lp:~akretion-team/openobject-addons/trunk-addons-mrp-perf-improve |
Merge into: | lp:openobject-addons |
Diff against target: |
12 lines (+1/-1) 1 file modified
mrp/mrp.py (+1/-1) |
To merge this branch: | bzr merge lp:~akretion-team/openobject-addons/trunk-addons-mrp-perf-improve |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+102072@code.launchpad.net |
Description of the change
2 reasons for this one-line patch :
- performance : most of the time, production.
- usability : in stock/stock.py line 1731, you can see that writing to a stock_move in 'done' state is very restricted. When you have already validated the outgoing product but haven't validated the production order (I know, you should first validate the production order and THEN the outgoing product), and you try to validate the production order, then you get the error message "Quantities, UoMs, Products and Locations cannot be modified on stock moves that have already been processed (except by the Administrator)". This patch allows this scenario without the error message when the stock_move already has the right value for 'location_id'.