Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-881020-ksa into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #881020 in OpenERP Addons: "Procurement of product with BOM in waiting
state"
https://bugs.launchpad.net/openobject-addons/+bug/881020
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-881020-ksa/+merge/82675
When the task is done the procurement order of the service product should
change to "done" and also the BOM product.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-881020-ksa/+merge/82675
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-881020-ksa.
=== modified file 'project_mrp/project_mrp.py'
--- project_mrp/project_mrp.py 2011-11-15 18:19:35 +0000
+++ project_mrp/project_mrp.py 2011-11-18 12:48:24 +0000
@@ -38,6 +38,9 @@
def do_close(self, cr, uid, ids, *args, **kwargs):
res = super(project_task, self).do_close(cr, uid, ids, *args, **kwargs)
+ procurement_obj = self.pool.get('procurement.order')
+ for task in self.browse(cr, uid, ids):
+ procurement_obj.write(cr, uid, task.procurement_id.id, {'close_move':True})
self._validate_subflows(cr, uid, ids)
return res
=== modified file 'project_mrp/project_mrp_workflow.xml'
--- project_mrp/project_mrp_workflow.xml 2011-01-14 00:11:01 +0000
+++ project_mrp/project_mrp_workflow.xml 2011-11-18 12:48:24 +0000
@@ -3,7 +3,7 @@
<data>
<record model="workflow.transition" id="procurement.trans_produce_service_make_done">
<field name="act_from" ref="procurement.act_produce_service"/>
- <field name="act_to" ref="procurement.act_make_done"/>
+ <field name="act_to" ref="procurement.act_done"/>
<field name="signal">subflow.done</field>
</record>
</data>
_______________________________________________
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