summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-10-22 11:51:30 +0200
committerDenis Ledoux <dle@odoo.com>2014-10-22 11:51:30 +0200
commit6998184d9da0e4e010f4761d4e355612dcab2a5d (patch)
treed22073a5dbe42e5e0e37b52fa1a7db563892677c
parent8e59d086d571f49600db40b9b70713c416883b43 (diff)
[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
-rw-r--r--addons/product/product.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/product/product.py b/addons/product/product.py
index 328218597f9..77dfd852209 100644
--- a/addons/product/product.py
+++ b/addons/product/product.py
@@ -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'),