Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-mrp-repair-state-mma into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-mrp-repair-state-mma/+merge/88362

Hello,

Reproduce the bug :
-------------
step:-
1] create a record of Repair order form  put repair line and set invoice after 
repair 
 now confirm ,start repair and end repair then make Invoice by wizard
 so Here in this case state is not changed to done still it refer to be 
invoiced 

Fix
-----
I Have pass a workflow 'action_invoice_create' in make invoice wizard

Thanks.
Mayur Mahehswari [ mma ]
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-mrp-repair-state-mma/+merge/88362
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-mrp-repair-state-mma.
=== modified file 'mrp_repair/wizard/make_invoice.py'
--- mrp_repair/wizard/make_invoice.py	2011-01-14 00:11:01 +0000
+++ mrp_repair/wizard/make_invoice.py	2012-01-12 12:12:25 +0000
@@ -45,6 +45,8 @@
         order_obj = self.pool.get('mrp.repair')
         newinv = order_obj.action_invoice_create(cr, uid, context['active_ids'],
                                                  group=inv.group,context=context)
+        wf_service = netsvc.LocalService("workflow")
+        wf_service.trg_validate(uid, 'mrp.repair', context.get('active_id'), 'action_invoice_create' , cr)
 
         return {
             'domain': [('id','in', newinv.values())],

_______________________________________________
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

Reply via email to