diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py
index efd5135c09b..9772984bc3b 100644
--- a/addons/account/account_invoice.py
+++ b/addons/account/account_invoice.py
@@ -824,8 +824,9 @@ class account_invoice(osv.osv):
compute_taxes = ait_obj.compute(cr, uid, inv.id, context=ctx)
self.check_tax_lines(cr, uid, inv, compute_taxes, ait_obj)
- if inv.type in ('in_invoice', 'in_refund') and abs(inv.check_total - inv.amount_total) >= (inv.currency_id.rounding/2.0):
- raise osv.except_osv(_('Bad total !'), _('Please verify the price of the invoice !\nThe real total does not match the computed total.'))
+ # I disabled the check_total feature
+ #if inv.type in ('in_invoice', 'in_refund') and abs(inv.check_total - inv.amount_total) >= (inv.currency_id.rounding/2.0):
+ # raise osv.except_osv(_('Bad total !'), _('Please verify the price of the invoice !\nThe real total does not match the computed total.'))
if inv.payment_term:
total_fixed = total_percent = 0
@@ -1267,7 +1268,7 @@ class account_invoice_line(osv.osv):
def _price_unit_default(self, cr, uid, context=None):
if context is None:
context = {}
- if 'check_total' in context:
+ if context.get('check_total', False):
t = context['check_total']
for l in context.get('invoice_line', {}):
if isinstance(l, (list, tuple)) and len(l) >= 3 and l[2]:
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 2928d5421a2..566f3958670 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -168,7 +168,7 @@
-
+
@@ -179,7 +179,7 @@
-
+
diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py
index 55b843ec68b..164314c4573 100644
--- a/addons/procurement/procurement.py
+++ b/addons/procurement/procurement.py
@@ -567,4 +567,12 @@ class stock_warehouse_orderpoint(osv.osv):
return super(stock_warehouse_orderpoint, self).copy(cr, uid, id, default, context=context)
stock_warehouse_orderpoint()
+
+class product_product(osv.osv):
+ _inherit="product.product"
+ _columns = {
+ 'orderpoint_ids': fields.one2many('stock.warehouse.orderpoint', 'product_id', 'Minimum Stock Rule')
+ }
+product_product()
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml
index 400412298cc..518a8900072 100644
--- a/addons/procurement/procurement_view.xml
+++ b/addons/procurement/procurement_view.xml
@@ -275,5 +275,30 @@
+
+
+ product.normal.form.orderpoint.inherit
+ product.product
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+