Commit Graph

588 Commits

Author SHA1 Message Date
Julien Legros 61a8971db5 [FIX] mrp: chain product move and MO locations
When validating a SO containing a `make to stock` + `manufacture` product
(with bom + orderpoint), we have the following stock moves:
* Product move
* Manufacturing order
Selling 1 such product would yield 2 as incoming quantity, an
inconsistency that this commit solves by setting the location_id of the
product move to the MO's location_dest_id (in the same fashion that
the create_pickings method does in an mts/buy case)

opw-616229
2014-11-05 12:44:02 +01:00
Najlaâ El Khayat e7285c6e1d Production : Source location of the BOM
Use the source location defined on the current MO's routing not directly on the BOM
2014-06-19 14:51:32 +02:00
Martin Trigaux 5db649549c [IMP] mrp: use also the ceiling method from product
bzr revid: mat@openerp.com-20140306094504-37r691hxcemp0ual
2014-03-06 10:45:04 +01:00
Denis Ledoux 83677ed6e6 [REVERT] 9401 dle@openerp.com-20130830125155-1vedifnupu2xvth7
This had as side-effect to not allow splitting BOMs
(a manufacturing order for 1 unit of a BOM producing 10 units consumed the lines like it was 10 units, not 1)

This fix was to avoid having a fraction of a unit (for instance, 0.5 unit).

But, finally, it is preferable to allow splitting units:
1. Most users do not use several uoms, and in this case, the unit is the default uom (hidden).
2. At the moment, it is allowed to ask a manufacturing order splitting up the unit uom
(It is allowed to ask the production of 0.5 USB Adapter, for instance)
Thus, we should allow the splitting up of the unit uom in the lines too.

bzr revid: dle@openerp.com-20140124120102-we2yxio553ws2yz4
2014-01-24 13:01:02 +01:00
Denis Ledoux d69ecb8d8f [FIX] mrp, stock: avoid float rounding errors using float_compare
bzr revid: dle@openerp.com-20140122133822-fkt5gqanpptlx9jx
2014-01-22 14:38:22 +01:00
Martin Trigaux a8f47d3747 [MERGE] [FIX] mrp: correctly handle internal type for stock.picking on manufacturing order
lp bug: https://launchpad.net/bugs/1117229 fixed

bzr revid: mat@openerp.com-20131119162522-x4fw8hluvfzt27ha
2013-11-19 17:25:22 +01:00
Rifakat e2e20bae4c [FIX] mrp: improved fix, used DEFAULT_SERVER_DATETIME_FORMAT for date, removed extra AND and _order from search()
bzr revid: rha@tinyerp.com-20130924062648-qshruwnukmtn0b7w
2013-09-24 11:56:48 +05:30
Martin Trigaux 461b5d8191 [MERGE] [FIX] mrp_subproduct: correctly take into account subproduct_factor when checking quantities on BoM
bzr revid: mat@openerp.com-20130916123442-cch34mghmwh1p18e
2013-09-16 14:34:42 +02:00
Martin Trigaux 3029fc869e [MERGE] [FIX] mrp: producing a BoM of type service is no longer blocked in ready state, correctly transmit project reference when create task from sale order
bzr revid: mat@openerp.com-20130916113323-8an09x0d7svv2j7d
2013-09-16 13:33:23 +02:00
Martin Trigaux 503f69cba3 [IMP] project_mrp: cleaning and add condition for triggering signal
bzr revid: mat@openerp.com-20130916100120-kuuyofh3o8e3iv8c
2013-09-16 12:01:20 +02:00
Martin Trigaux 7485ec46d7 [IMP] mrp: trigger workflow only if no move lines
bzr revid: mat@openerp.com-20130916094604-zonoyxeic948mjn2
2013-09-16 11:46:04 +02:00
Paramjit Singh Sahota 2b65bbfa82 [IMP] Improved code to return product_lines.
bzr revid: psa@tinyerp.com-20130912135445-xf0rmbh117fznd5v
2013-09-12 19:24:45 +05:30
Paramjit Singh Sahota 8825f2070b [IMP] Improved method name and code accordingly.
bzr revid: psa@tinyerp.com-20130912131434-99xv1prw3o4dy9ge
2013-09-12 18:44:34 +05:30
Paramjit Singh Sahota 387bffe50e [IMP] Divided the action_compute method and improved code according to that.
bzr revid: psa@tinyerp.com-20130912115556-9c67dzpr6mao251w
2013-09-12 17:25:56 +05:30
Paramjit Singh Sahota 000ca6103d [IMP] Added another testcase for 2 service type product
And improved code for bom product with service type product used in SO doesnt link the project perfectly.

bzr revid: psa@tinyerp.com-20130912110454-x9tidij14xj09joz
2013-09-12 16:34:54 +05:30
Paramjit Singh Sahota a0cb8675df [IMP] Improved code
bzr revid: psa@tinyerp.com-20130911145615-wzy1kmajr7j1731y
2013-09-11 20:26:15 +05:30
Paramjit Singh Sahota a3482a990f [IMP] Improved code for the BOM with service type product.
bzr revid: psa@tinyerp.com-20130911141123-snw3u5mgtf4xv3k6
2013-09-11 19:41:23 +05:30
Paramjit Singh Sahota f716d9bf9c [REM] Removed the unwanted code.
bzr revid: psa@tinyerp.com-20130911123044-xgw123lfj62cx71x
2013-09-11 18:00:44 +05:30
Bharat R. Devnani (OpenERP) 9adf175561 [IMP] refered sale_line_id of procurement_order from stock_move object
bzr revid: bde@tinyerp.com-20130904061451-ouptbee94gb2dsht
2013-09-04 11:44:51 +05:30
Paramjit Singh Sahota 3f37dabea0 [MERGE] Merged lp:openobject-addons/7.0
bzr revid: psa@tinyerp.com-20130830132612-ekntqdkholcg15sx
2013-08-30 18:56:12 +05:30
Denis Ledoux 9979078aa8 [FIX]mrp: _bom_explode, rounding used must be max(bom.product_rounding, bom.product_uom.rounding), in order to avoid asking 0.5 Unit
bzr revid: dle@openerp.com-20130830125155-1vedifnupu2xvth7
2013-08-30 14:51:55 +02:00
Paramjit Singh Sahota 22669ee07c [MERGE] Merged lp:openobject-addons/7.0
bzr revid: psa@tinyerp.com-20130624131850-bz1speq0m5qvklx5
bzr revid: psa@tinyerp.com-20130813111300-mx6ditfva9dn01nj
2013-08-13 16:43:00 +05:30
Martin Trigaux 38bf262119 [IMP] stock: more fault tolerant usage of xml id
bzr revid: mat@openerp.com-20130731092732-9fa0xb66mo7uakb4
2013-07-31 11:27:32 +02:00
Martin Trigaux 457aceff18 [IMP] mrp: properly remove product lines and workorder lines when confirming a manufacturing order, avoid getting traceback if trying action on deleted record
bzr revid: mat@openerp.com-20130725150909-ujh5xk2q2escr6a7
2013-07-25 17:09:09 +02:00
Laetitia Gangloff (Acsone) a83c3a9591 mrp : product quantity is modified with the factor
lp bug: https://launchpad.net/bugs/1200676 fixed

bzr revid: laetitia.gangloff@acsone.eu-20130712152235-lbfi12a0z29tw22a
2013-07-12 17:22:35 +02:00
Paramjit Singh Sahota 4708fce25c Little improvement.
bzr revid: psa@tinyerp.com-20130527114236-f1ryogo75y9cnxn7
2013-05-27 17:12:36 +05:30
Paramjit Singh Sahota f630a3a64a [IMP] Added context whereever necessary, improved code of action_done and removed unwanted spaces.
bzr revid: psa@tinyerp.com-20130527110901-q6717focg99qq46a
2013-05-27 16:39:01 +05:30
Jagdish Panchal 21d80930b0 [IMP] remove unwanted change
bzr revid: jap@tinyerp.com-20130517064041-bf7jq2p04zgp480n
2013-05-17 12:10:41 +05:30
Jagdish Panchal 8f1393f3ca [IMP] Improve code when bom componant is service stock move in available state
bzr revid: jap@tinyerp.com-20130515125745-da9sybl7osixzhfm
2013-05-15 18:27:45 +05:30
Jagdish Panchal 555636280e [IMP] improve code in for mrp stock.py
bzr revid: jap@tinyerp.com-20130503105029-d9eqs4curvxwuvra
2013-05-03 16:20:29 +05:30
Jagdish Panchal 8e8d370ba9 [IMP] improve code and remove unwated change
bzr revid: jap@tinyerp.com-20130503071754-vwok8xpjcjo63m9o
2013-05-03 12:47:54 +05:30
Jagdish Panchal 45e461bd64 [IMP] improve code for the button product
bzr revid: jap@tinyerp.com-20130503055934-8rrgvydvxkadwwxh
2013-05-03 11:29:34 +05:30
Jagdish Panchal cdb7c6603e [IMP] bit improve code for yml test
bzr revid: jap@tinyerp.com-20130503053948-3hdhmh5vljw43uuh
2013-05-03 11:09:48 +05:30
Jagdish Panchal 6644af8c88 [IMP] improve code
bzr revid: jap@tinyerp.com-20130503053337-9vmq3t903dwwcjkt
2013-05-03 11:03:37 +05:30
Jagdish Panchal 5126a05c4a [IMP] remove unwated change
bzr revid: jap@tinyerp.com-20130503051252-c8o424i116yqkd14
2013-05-03 10:42:52 +05:30
Jagdish Panchal df08c2cb70 [IMP] improve code
bzr revid: jap@tinyerp.com-20130502133027-rgu6etatmcaflaeg
2013-05-02 19:00:27 +05:30
Jagdish Panchal 07cb4cd083 [IMP] Remove unwated change
bzr revid: jap@tinyerp.com-20130502062818-ghys3kb5mp6rt5af
2013-05-02 11:58:18 +05:30
Jagdish Panchal 4eabc8f186 [IMP] Improve code for mrp work flow
bzr revid: jap@tinyerp.com-20130502062551-tk4jlx4l61rhhhce
2013-05-02 11:55:51 +05:30
Jagdish Panchal 0d9dfd54e7 [IMP] Improve code in mrp.py for service type product
bzr revid: jap@tinyerp.com-20130501133229-1kt9kp9aunm5np9l
2013-05-01 19:02:29 +05:30
Rifakat 0b7f30af8b [FIX] mrp: allow only those bills which are active and not expired(belongs to specific period) in manufacturing
lp bug: https://launchpad.net/bugs/1049415 fixed

bzr revid: rha@tinyerp.com-20130415093513-wq98pv62sywys134
2013-04-15 15:05:13 +05:30
Thibault Delavallée e3c31cab9e [IMP] track_visibility atribute: moved onto explicit strings.
bzr revid: tde@openerp.com-20121220114730-nip8qaaajr5mqw6s
2012-12-20 12:47:30 +01:00
Thibault Delavallée cd290565a4 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121219093924-5rqmhb6ve7bv7qzl
2012-12-19 10:39:24 +01: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
Fabien Pinckaers 41f7f27881 [IMP] several subtype fixes
bzr revid: fp@tinyerp.com-20121218220617-d6ebdlkf1facw4x8
2012-12-18 23:06:17 +01:00
Thibault Delavallée 8e0c7f9781 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121218181852-j9qg1po5y4yw67ko
2012-12-18 19:18:52 +01:00
Olivier Dony fc0c2942ba [MERGE] Another batch of bugfixes from 6.1
bzr revid: odo@openerp.com-20121218175547-7c1uxq4ypbi314gx
2012-12-18 18:55:47 +01:00
Thibault Delavallée 67905b2dda [REF] Mrp_operation: added track on production_id of mpr.production.workcenter.line, removed extra chatter messages.
bzr revid: tde@openerp.com-20121218171146-zudtlz4f263zbzbd
2012-12-18 18:11:46 +01:00
Thibault Delavallée 453303b22c [FIX] MRP: fixed wrong method deleted in last commit.
bzr revid: tde@openerp.com-20121218162748-czspheb2oi0udqgn
2012-12-18 17:27:48 +01:00
Thibault Delavallée 32a8d0e58f [REF] MRP: removed most of message_post methods, replaced by a tracked state field.
bzr revid: tde@openerp.com-20121218155622-jn7q5z1ffxsap4nn
2012-12-18 16:56:22 +01:00
Olivier Dony b67f73c327 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121218025230-zig415ldtmazgbxt
2012-12-18 03:52:30 +01:00