Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-577292-ksa into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
Related bugs:
Bug #856291 in OpenERP Addons: "problem after installing modul 'sale_layout'"
https://bugs.launchpad.net/openobject-addons/+bug/856291
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-577292-ksa/+merge/117243
Hello,
I have fixed problem of compute button.When we have install sale_layout and
sale module compute button not work properly.
Tested it with and without installing sale_layout and it works.
Thanks
KSA
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-577292-ksa/+merge/117243
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-577292-ksa.
=== modified file 'sale/sale.py'
--- sale/sale.py 2012-06-29 14:14:29 +0000
+++ sale/sale.py 2012-07-30 11:33:21 +0000
@@ -243,19 +243,19 @@
'amount_untaxed': fields.function(_amount_all, method=True, digits_compute= dp.get_precision('Sale Price'), string='Untaxed Amount',
store = {
- 'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
+ 'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line','abstract_line_ids'], 10),
'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The amount without tax."),
'amount_tax': fields.function(_amount_all, method=True, digits_compute= dp.get_precision('Sale Price'), string='Taxes',
store = {
- 'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
+ 'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line','abstract_line_ids'], 10),
'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The tax amount."),
'amount_total': fields.function(_amount_all, method=True, digits_compute= dp.get_precision('Sale Price'), string='Total',
store = {
- 'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
+ 'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line','abstract_line_ids'], 10),
'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The total amount."),
_______________________________________________
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