[FIX] product: remove empty from state field selection
In order to avoid having twice "empty" in the web client. There is always an empty option in selection field in the web client. When the selection field is required, you have to select it, and it is not required, you can set False as selection value
This commit is contained in:
@@ -511,8 +511,7 @@ class product_template(osv.osv):
|
||||
'warranty': fields.float('Warranty'),
|
||||
'sale_ok': fields.boolean('Can be Sold', help="Specify if the product can be selected in a sales order line."),
|
||||
'pricelist_id': fields.dummy(string='Pricelist', relation='product.pricelist', type='many2one'),
|
||||
'state': fields.selection([('',''),
|
||||
('draft', 'In Development'),
|
||||
'state': fields.selection([('draft', 'In Development'),
|
||||
('sellable','Normal'),
|
||||
('end','End of Lifecycle'),
|
||||
('obsolete','Obsolete')], 'Status'),
|
||||
|
||||
Reference in New Issue
Block a user