Bharat Devnani (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-849603-bde into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #849603 in OpenERP Addons: "cost calculation for price: zero products in
timesheet"
https://bugs.launchpad.net/openobject-addons/+bug/849603
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-849603-bde/+merge/77282
Hello Sir,
I have done little modification in def on_change_unit_amount of
account_analytic_line.py file in account module.
Thanks & Regards,
Devnani Bharat R.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-849603-bde/+merge/77282
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-849603-bde.
=== modified file 'account/account_analytic_line.py'
--- account/account_analytic_line.py 2011-05-31 21:55:34 +0000
+++ account/account_analytic_line.py 2011-09-28 06:28:24 +0000
@@ -123,7 +123,7 @@
ctx['uom'] = unit
amount_unit = prod.price_get(pricetype.field, context=ctx)[prod.id]
prec = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
- amount = amount_unit * quantity or 1.0
+ amount = amount_unit * quantity
result = round(amount, prec)
if not flag:
result *= -1
_______________________________________________
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