From 7c11bb3d8e9cac1623aca3cfe408d1f4f71875f7 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 6 Nov 2012 09:26:33 +0100 Subject: [PATCH] [FIX] lunch: fixed bug introduced during code review, in previous revision bzr revid: qdp-launchpad@openerp.com-20121106082633-5sysljeo47opkshj --- addons/lunch/lunch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/lunch/lunch.py b/addons/lunch/lunch.py index ffc3e3e8da1..496cbcdb8dc 100644 --- a/addons/lunch/lunch.py +++ b/addons/lunch/lunch.py @@ -356,9 +356,9 @@ class lunch_order_line(osv.Model): isconfirmed = False if orderline.state == 'cancelled': isconfirmed = False - order_ref.write(cr, uid, [order.id], {'state': 'partially'}, context=context) + orders_ref.write(cr, uid, [order.id], {'state': 'partially'}, context=context) if isconfirmed: - order_ref.write(cr, uid, [order.id], {'state': 'confirmed'}, context=context) + orders_ref.write(cr, uid, [order.id], {'state': 'confirmed'}, context=context) return {} def cancel(self, cr, uid, ids, context=None):