From d672e63298e8d9e480fb47ca20eaf3379d564686 Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Fri, 7 Nov 2014 16:13:42 +0100 Subject: [PATCH] Fix street3 hook override. Street3 is not part of commercial fields --- partner_address_street3/model/partner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/partner_address_street3/model/partner.py b/partner_address_street3/model/partner.py index 832e6d9cb..a4d0f2098 100644 --- a/partner_address_street3/model/partner.py +++ b/partner_address_street3/model/partner.py @@ -19,7 +19,6 @@ # ############################################################################## from openerp.osv import orm, fields -from openerp.addons.base.res import res_partner class res_partner(orm.Model): @@ -30,9 +29,9 @@ class res_partner(orm.Model): 'street3': fields.char('Street 3'), } - def _commercial_fields(self, cr, uid, context=None): + def _address_fields(self, cr, uid, context=None): fields = super(res_partner, self - )._commercial_fields(cr, uid, context=context) + )._address_fields(cr, uid, context=context) fields.append('street3') return fields