From 372b52b044d6f6acaea8a6b3f8edcbbe039c382e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 8 Jan 2014 14:30:15 +0100 Subject: [PATCH] [FIX] events yaml test, remove event.on_change_address_id on_change_address_id was used to populate "display" address fields from the address m2o. The address fields were removed in favor of using show_address (in the context), leaving an onchange called returning fields which don't exist in the view, thus crashing the corresponding yaml test (which checks for that). Since the onchange has no purpose left, remove it and its call. bzr revid: xmo@openerp.com-20140108133015-ald901hsy1lqo7tv --- addons/event/event.py | 15 --------------- addons/event/event_view.xml | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/addons/event/event.py b/addons/event/event.py index 122432a9c77..ad3e3624500 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -272,21 +272,6 @@ class event_event(osv.osv): } return {'value': dic} - def on_change_address_id(self, cr, uid, ids, address_id, context=None): - values = {} - if not address_id: - return values - address = self.pool.get('res.partner').browse(cr, uid, address_id, context=context) - values.update({ - 'street' : address.street, - 'street2' : address.street2, - 'city' : address.city, - 'country_id' : address.country_id and address.country_id.id or False, - 'state_id' : address.state_id and address.state_id.id or False, - 'zip' : address.zip, - }) - return {'value' : values} - def onchange_start_date(self, cr, uid, ids, date_begin=False, date_end=False, context=None): res = {'value':{}} if date_end: diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml index e8d8dae4c45..36f7eee032c 100644 --- a/addons/event/event_view.xml +++ b/addons/event/event_view.xml @@ -74,7 +74,7 @@ - +