Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-807521-ksa into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #807521 in OpenERP Addons: "Production order with automatic move"
https://bugs.launchpad.net/openobject-addons/+bug/807521
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-807521-ksa/+merge/69394
Automatic movement for one location to another location of production order.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-807521-ksa/+merge/69394
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-807521-ksa.
=== modified file 'mrp/stock.py'
--- mrp/stock.py 2011-04-07 11:32:08 +0000
+++ mrp/stock.py 2011-07-27 05:31:18 +0000
@@ -101,17 +101,18 @@
wf_service.trg_validate(uid, 'procurement.order', m, 'button_confirm', cr)
wf_service.trg_validate(uid, 'procurement.order', m, 'button_wait_done', cr)
return True
-
- def action_consume(self, cr, uid, ids, product_qty, location_id=False, context=None):
+
+ def action_consume(self, cr, uid, ids, product_qty, location_id=False, context=None):
""" Consumed product with specific quatity from specific source location.
@param product_qty: Consumed product quantity
@param location_id: Source location
@return: Consumed lines
- """
+ """
res = []
production_obj = self.pool.get('mrp.production')
wf_service = netsvc.LocalService("workflow")
for move in self.browse(cr, uid, ids):
+ move.action_confirm(context)
new_moves = super(StockMove, self).action_consume(cr, uid, [move.id], product_qty, location_id, context=context)
production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])])
for prod in production_obj.browse(cr, uid, production_ids, context=context):
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp