From 55f4e24c663aa27dbbc3465486813d662deea561 Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 19 Jul 2011 16:08:32 +0200 Subject: [PATCH] [FIX] sale: size kwarg in float field seems to be in fact a digits kwarg. bzr revid: vmt@openerp.com-20110719140832-hzta4p9t5vfjwp5b --- addons/sale/wizard/sale_make_invoice_advance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index 4b1e4511021..4d9e0058e94 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -27,8 +27,8 @@ class sale_advance_payment_inv(osv.osv_memory): _columns = { 'product_id': fields.many2one('product.product', 'Advance Product', required=True, help="Select a product of type service which is called 'Advance Product'. You may have to create it and set it as a default value on this field."), - 'amount': fields.float('Advance Amount', size=(16, 2), required=True, help="The amount to be invoiced in advance."), - 'qtty': fields.float('Quantity', size=(16, 2), required=True), + 'amount': fields.float('Advance Amount', digits=(16, 2), required=True, help="The amount to be invoiced in advance."), + 'qtty': fields.float('Quantity', digits=(16, 2), required=True), } _defaults = { 'qtty': 1.0 @@ -173,4 +173,4 @@ class sale_open_invoice(osv.osv_memory): sale_open_invoice() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: