Commit Graph

24 Commits

Author SHA1 Message Date
Nicolas Lempereur e3232c85b9 [FIX] mrp_byproduct: remove wrong move_dest_id link
A byproduct is a produced when producing another product (the targetted
product).

A move can be linked to another move. eg: we could have a manufacturing
order of 3 units linked to a move of a delivery order of these 3 units.

If we produce 2 units, the manufacturing order is split in 2 units and
1 units, and the delivery order is split similarily because of the link

1. [T manufacturing move split] -> [T delivery move split]

(T is the targetted product, B is the byproduct)

But in 8c307d7b1 a move_dest_id of a byproduct was linked to the targetted
product delivery move, thus in some situation the move of the delivery
order of the byproduct would erroneously be split 2 times instead of one.

1. [B manufacturing move split] -> [T delivery move split]
2. [T manufacturing move split] -> [T delivery move split]

This could also be the source of other issue, and since the byproduct
and targetted product are different, the link should anyway not be done.

opw-697151

note: this change is already in 10.0 (it is inside mrp refactoring 2ddc35a53)
2017-02-01 15:33:53 +01:00
Nicolas Lempereur 2d407de5d4 [FIX] mrp_byproduct: remove bom uos when calculating byproduct
In commit 43977deb7 a mrp.bom was transformed from a recursive model
which may contains BoMs containing BoMs and so on, to a simpler model
containing a line of products (mrp.bom containing mrp.bom.line).

mrp_byproduct wasn't changed to reflect on this change which caused an
error.

Since there is no product Unit of Sale on a byproduct, the current
behaviour causing the error of trying to multiply based on the Unit of
Sale of the BoM product has been removed.

closes #7806
opw-645639
opw-645640
2015-07-30 17:23:50 +02:00
Josse Colpaert d675f32dda [FIX] Byproducts should not start in waiting state 2014-10-17 13:19:43 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Paul Catinean d82779684d [FIX] Added cascade on subproduct so they get removed once the parent boms are removed 2014-06-04 22:17:02 +02:00
Quentin (OpenERP) b342f897ae [REV] mrp_byproduct: partial revert of fix early made which, i guess, was wrongly removing a bunch of needed code
bzr revid: qdp-launchpad@openerp.com-20140422121625-iv3bqaoww6ty8cwp
2014-04-22 14:16:25 +02:00
Quentin (OpenERP) df2d5e148e [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20131129165644-fx0m3ok07l41o507
2013-11-29 17:56:44 +01:00
Olivier Dony 44664076da [MERGE] Forward-port of latest 7.0 fixes up to rev 9618 rev-id: dle@openerp.com-20131120142131-s333lyva85cyn41o
bzr revid: odo@openerp.com-20131120144059-yyh7emvgdarff09b
bzr revid: odo@openerp.com-20131120144318-11nmn1zj00zmi10z
2013-11-20 15:43:18 +01:00
Quentin (OpenERP) 2788ae87e3 [REF] no need to pass product_qty as it's a computed field
bzr revid: qdp-launchpad@openerp.com-20130806154856-msym9zsqufyx6nlx
2013-08-06 17:48:56 +02:00
Bharat R. Devnani (OpenERP) a513fcceee [ADD] added value for the field product_uom_qty
bzr revid: bde@tinyerp.com-20130806130939-44o690pv6c31d9dj
2013-08-06 18:39:39 +05:30
Quentin (OpenERP) 158f165836 [MERGE] fix mrp_byproduct
bzr revid: qdp-launchpad@openerp.com-20130806100921-2d8yscy3z8dbnre4
2013-08-06 12:09:21 +02:00
Bharat R. Devnani (OpenERP) 9cbb49ff35 [ADD] added value in product_uom_qty field in action_confirm method
bzr revid: bde@tinyerp.com-20130806091532-0uydtb8u2nqhbgm3
2013-08-06 14:45:32 +05:30
Dharti Ratani (Open ERP) 358bc73495 [FIX]Passing context in action_confirm for mrp production in mrp_byproduct
bzr revid: dhr@tinyerp.com-20130506114904-5yhqn7lfhzyrilvh
2013-05-06 17:19:04 +05:30
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Olivier Dony 03b6acd13d [MERGE] Access inherited product fields on the product directly rather than template, courtesy of Alexis de Lattre (Akretion)
It makes the code a little more straightforward and does not hurt.

bzr revid: odo@openerp.com-20121218225015-6r9ydxjlh147m3z1
2012-12-18 23:50:15 +01:00
Cecile Tonglet a3939acfa5 [FIX] replace from/import decimal_precision by from/import openerp.addons.decimal_precision
bzr revid: cto@openerp.com-20121217152303-8e3b1x30rlw9cb0d
2012-12-17 16:23:03 +01:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Fabien Pinckaers fd002daed5 [MERGE] mrp byprodyct with uom conversion
bzr revid: fp@tinyerp.com-20121215180313-tc367avv1rl4bsj6
2012-12-15 19:03:13 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
dhr a652624909 [IMP]Improved BOM form view and added default quantity for product in mrp byproduct
bzr revid: dhr@tinyerp.com-20121126120042-g37rl8kfpz9jovsy
2012-11-26 17:30:42 +05:30
Ravi Gohil (OpenERP) f57f48100e [FIX]mrp_byproduct: Fixed the UoM conversion issue between subproduct defined in BOM and UoM defined in manufacturing order
bzr revid: mma@tinyerp.com-20121123114339-2ffxfzjn0aa5rfrh
2012-11-23 17:13:39 +05:30
Divyesh Makwana (Open ERP) d3f99be6f7 [Merge] Merge with main addons.
bzr revid: mdi@tinyerp.com-20121016043915-jj52ndvtvtry8wtn
bzr revid: mdi@tinyerp.com-20121017044114-rx20qcnmj0h2di9m
bzr revid: mdi@tinyerp.com-20121018040816-rldo7d3wvdarhrrn
bzr revid: mdi@tinyerp.com-20121019043918-ajzdhughbwm3j859
bzr revid: mdi@tinyerp.com-20121022041308-wczx6ppb8id1100g
2012-10-22 09:43:08 +05:30
Divyesh Makwana (Open ERP) 31336151de [IMP] mrp_byproduct : Renamed 'subproduct' to 'byproduct'.
bzr revid: mdi@tinyerp.com-20121008102836-rwd3ooy413yxqou8
2012-10-08 15:58:36 +05:30