diff --git a/addons/product/product.py b/addons/product/product.py
index 20f75181f57..6bf26a45d24 100644
--- a/addons/product/product.py
+++ b/addons/product/product.py
@@ -294,7 +294,6 @@ class product_template(osv.osv):
help="Standard Price: the cost price is fixed and recomputed periodically (usually at the end of the year), Average Price: the cost price is recomputed at each reception of products."),
'warranty': fields.float('Warranty'),
'sale_ok': fields.boolean('Can be Sold', help="Determines if the product can be visible in the list of product within a selection from a sale order line."),
- 'purchase_ok': fields.boolean('Can be Purchased', help="Determine if the product is visible in the list of products within a selection from a purchase order line."),
'state': fields.selection([('',''),
('draft', 'In Development'),
('sellable','Normal'),
@@ -309,9 +308,6 @@ class product_template(osv.osv):
' uos = uom * coeff'),
'mes_type': fields.selection((('fixed', 'Fixed'), ('variable', 'Variable')), 'Measure Type'),
'seller_ids': fields.one2many('product.supplierinfo', 'product_id', 'Partners'),
- 'loc_rack': fields.char('Rack', size=16),
- 'loc_row': fields.char('Row', size=16),
- 'loc_case': fields.char('Case', size=16),
'company_id': fields.many2one('res.company', 'Company', select=1),
}
@@ -353,7 +349,6 @@ class product_template(osv.osv):
'cost_method': lambda *a: 'standard',
'standard_price': lambda *a: 0.0,
'sale_ok': lambda *a: 1,
- 'sale_delay': lambda *a: 7,
'produce_delay': lambda *a: 1,
'purchase_ok': lambda *a: 1,
'uom_id': _get_uom_id,
diff --git a/addons/product/product_data.xml b/addons/product/product_data.xml
index 9808fa732e9..0d519190e86 100644
--- a/addons/product/product_data.xml
+++ b/addons/product/product_data.xml
@@ -197,7 +197,6 @@ parameter) will see those record just disappear.
Serviceservice
-
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index cc2b2b9fb63..32d6711d386 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -12,9 +12,7 @@
-
-
@@ -73,8 +71,6 @@
-
-
-
-
-
diff --git a/addons/product_expiry/product_expiry_view.xml b/addons/product_expiry/product_expiry_view.xml
index 88ea6f365e8..d6dfb22b317 100644
--- a/addons/product_expiry/product_expiry_view.xml
+++ b/addons/product_expiry/product_expiry_view.xml
@@ -19,9 +19,9 @@
product.normal.formproduct.product
-
+
-
+
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py
index d654078a055..6643394b148 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -1095,4 +1095,16 @@ class mail_mail(osv.osv):
mail_mail()
+class product_template(osv.osv):
+ _name = 'product.template'
+ _inherit = 'product.template'
+ _columns = {
+ 'purchase_ok': fields.boolean('Can be Purchased', help="Determine if the product is visible in the list of products within a selection from a purchase order line."),
+ }
+ _defaults = {
+ 'purchase_ok': lambda *a: 1,
+ }
+
+product_template()
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/purchase/purchase_demo.xml b/addons/purchase/purchase_demo.xml
index 17f51bb1004..c68ee8775bb 100644
--- a/addons/purchase/purchase_demo.xml
+++ b/addons/purchase/purchase_demo.xml
@@ -14,6 +14,9 @@
+
+
+
diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml
index 7702d182b09..66c66e024bd 100644
--- a/addons/purchase/purchase_view.xml
+++ b/addons/purchase/purchase_view.xml
@@ -589,6 +589,10 @@
product.product
+
+
+
+
@@ -609,5 +613,45 @@
+
+
+ product.search.stock.form
+ product.product
+
+
+
+
+
+
+
+
+
+
+
+
+ product.template.purchase.ok.form.inherit
+ product.template
+
+
+
+
+
+
+
+
+
+ product.account.purchase.ok.form.inherit
+ product.product
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/stock/product.py b/addons/stock/product.py
index 2016e25a5f6..e93258b56cd 100644
--- a/addons/stock/product.py
+++ b/addons/stock/product.py
@@ -513,8 +513,15 @@ class product_template(osv.osv):
string='Stock Output Account', view_load=True,
help="When doing real-time inventory valuation, counterpart journal items for all outgoing stock moves will be posted in this account, unless "
"there is a specific valuation account set on the destination location. When not set on the product, the one from the product category is used."),
+ 'sale_delay': fields.float('Customer Lead Time', help="This is the average delay in days between the confirmation of the customer order and the delivery of the finished products. It's the time you promise to your customers."),
+ 'loc_rack': fields.char('Rack', size=16),
+ 'loc_row': fields.char('Row', size=16),
+ 'loc_case': fields.char('Case', size=16),
}
+ _defaults = {
+ 'sale_delay': lambda *a: 7,
+ }
product_template()
class product_category(osv.osv):
diff --git a/addons/stock/product_view.xml b/addons/stock/product_view.xml
index a7dff7fcc0d..aaa16844b9e 100644
--- a/addons/stock/product_view.xml
+++ b/addons/stock/product_view.xml
@@ -35,6 +35,16 @@
product.template
+
+
+
+
+
+
+
+
+
+
@@ -65,12 +75,45 @@
-
-
-
-
-
+
+
+