Purnendu Singh (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-788686-psi into lp:openobject-addons.
Requested reviews: OpenERP Core Team (openerp) Related bugs: Bug #788686 in OpenERP Addons: "Problem with override function module: sale_layout" https://bugs.launchpad.net/openobject-addons/+bug/788686 For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-788686-psi/+merge/62875 Hello, Fixes: https://bugs.launchpad.net/openobject-addons/+bug/788686 Problem with override function module: sale_layout We need to override the field also to override any function which is being called by function field. (framework limitation). Thanks Purnendu Singh -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-788686-psi/+merge/62875 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-788686-psi.
=== modified file 'sale_layout/sale_layout.py' --- sale_layout/sale_layout.py 2011-01-14 00:11:01 +0000 +++ sale_layout/sale_layout.py 2011-05-30 12:53:31 +0000 @@ -116,6 +116,7 @@ 'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Sale Price'), readonly=True, states={'draft': [('readonly', False)]}), 'product_uom_qty': fields.float('Quantity (UoM)', digits=(16,2)), 'product_uom': fields.many2one('product.uom', 'Product UoM'), + 'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal', digits_compute= dp.get_precision('Sale Price')), } _defaults = {
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-web Post to : openerp-dev-web@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-web More help : https://help.launchpad.net/ListHelp