Jignesh Rathod(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1021788-jir into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1021788 in OpenERP Addons: "mrp_operation: Workorder 's costing should 
be based on  working hours instead of number of hours."
  https://bugs.launchpad.net/openobject-addons/+bug/1021788

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1021788-jir/+merge/114110

Hello ,

Solve the problem of workorder costing.currently workorder costing 
calculate base on number of hours instead of working hours and it should be 
based on 
working hours.

Thank you.

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1021788-jir/+merge/114110
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1021788-jir.
=== modified file 'mrp/mrp.py'
--- mrp/mrp.py	2012-07-02 14:57:47 +0000
+++ mrp/mrp.py	2012-07-10 07:06:36 +0000
@@ -806,7 +806,7 @@
         for wc_line in production.workcenter_lines:
             wc = wc_line.workcenter_id
             if wc.costs_journal_id and wc.costs_general_account_id:
-                value = wc_line.hour * wc.costs_hour
+                value = wc_line.delay * wc.costs_hour
                 account = wc.costs_hour_account_id.id
                 if value and account:
                     amount += value
@@ -818,7 +818,7 @@
                         'journal_id': wc.costs_journal_id.id,
                         'ref': wc.code,
                         'product_id': wc.product_id.id,
-                        'unit_amount': wc_line.hour,
+                        'unit_amount': wc_line.delay,
                         'product_uom_id': wc.product_id.uom_id.id
                     } )
             if wc.costs_journal_id and wc.costs_general_account_id:

_______________________________________________
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