diff --git a/addons/product/product.py b/addons/product/product.py
index d04f308bc4b..69522981abb 100644
--- a/addons/product/product.py
+++ b/addons/product/product.py
@@ -282,7 +282,6 @@ class product_template(osv.osv):
'description_sale': fields.text('Sale Description',translate=True),
'type': fields.selection([('product','Stockable Product'),('consu', 'Consumable'),('service','Service')], 'Product Type', required=True, help="Will change the way procurements are processed. Consumable are product where you don't manage stock."),
'supply_method': fields.selection([('produce','Manufacture'),('buy','Buy')], 'Supply Method', required=True, help="Produce will generate production order or tasks, according to the product type. Buy will trigger purchase orders when requested."),
- '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."),
'produce_delay': fields.float('Manufacturing Lead Time', help="Average delay in days to produce this product. This is only for the production order and, if it is a multi-level bill of material, it's only for the level of this product. Different lead times will be summed for all levels and purchase orders."),
'procure_method': fields.selection([('make_to_stock','Make to Stock'),('make_to_order','Make to Order')], 'Procurement Method', required=True, help="'Make to Stock': When needed, take from the stock or wait until re-supplying. 'Make to Order': When needed, purchase or produce for the procurement request."),
'rental': fields.boolean('Can be Rent'),
@@ -296,7 +295,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'),
@@ -311,9 +309,6 @@ class product_template(osv.osv):
' uos = uom * coeff'),
'mes_type': fields.selection((('fixed', 'Fixed'), ('variable', 'Variable')), 'Measure Type', required=True),
'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),
}
@@ -356,9 +351,7 @@ class product_template(osv.osv):
'supply_method': lambda *a: 'buy',
'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,
'procure_method': lambda *a: 'make_to_stock',
'uom_id': _get_uom_id,
'uom_po_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 8c19aee026f..cedaa279991 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 d2060016866..6638edc3f0d 100644
--- a/addons/purchase/purchase.py
+++ b/addons/purchase/purchase.py
@@ -1106,4 +1106,16 @@ class mail_mail(osv.osv):
return super(mail_mail, self)._postprocess_sent_message(cr, uid, mail=mail, context=context)
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 @@
-
-
-
-
-
+
+
+