summaryrefslogtreecommitdiff
path: root/addons/warning/warning.py
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2013-09-17 09:12:48 +0200
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2013-09-17 09:12:48 +0200
commit2ad5cd9955d41df5b8bdb6fd09e4d81cc30693e2 (patch)
tree81e91786533daab1b0957f1b11eb3866d857796a /addons/warning/warning.py
parente12c9ab5ecc9ae46405ee1e78f1d0a64c3772851 (diff)
[FIX] warning: signature of onchange_product_id() of purchase.order.line
bzr revid: qdp-launchpad@openerp.com-20130917071248-iq8igi4zxz7zwa4x
Diffstat (limited to 'addons/warning/warning.py')
-rw-r--r--addons/warning/warning.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/warning/warning.py b/addons/warning/warning.py
index b0ca4937f94..50080736b8c 100644
--- a/addons/warning/warning.py
+++ b/addons/warning/warning.py
@@ -252,7 +252,7 @@ class purchase_order_line(osv.osv):
_inherit = 'purchase.order.line'
def onchange_product_id(self,cr, uid, ids, pricelist, product, qty, uom,
partner_id, date_order=False, fiscal_position_id=False, date_planned=False,
- name=False, price_unit=False, notes=False, context=None):
+ name=False, price_unit=False, states='draft', notes=False, context=None):
warning = {}
if not product:
return {'value': {'price_unit': 0.0, 'name':'','notes':'', 'product_uom' : False}, 'domain':{'product_uom':[]}}