[FIX] sale: size kwarg in float field seems to be in fact a digits kwarg.
authorVo Minh Thu <vmt@openerp.com>
Tue, 19 Jul 2011 14:08:32 +0000 (16:08 +0200)
committerVo Minh Thu <vmt@openerp.com>
Tue, 19 Jul 2011 14:08:32 +0000 (16:08 +0200)
bzr revid: vmt@openerp.com-20110719140832-hzta4p9t5vfjwp5b

addons/sale/wizard/sale_make_invoice_advance.py

index 4b1e451..4d9e005 100644 (file)
@@ -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: