From e74bc190d10af9b442c8d21920e8db75174805ce Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Wed, 20 Jan 2016 19:52:55 +0100 Subject: [PATCH] [8.0][FIX][partner_relations] Split read method overwrite --- partner_relations/model/res_partner.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/partner_relations/model/res_partner.py b/partner_relations/model/res_partner.py index 0eb8634c4..dc5608c76 100644 --- a/partner_relations/model/res_partner.py +++ b/partner_relations/model/res_partner.py @@ -299,7 +299,13 @@ class ResPartner(models.Model): cr, uid, args + date_args + active_args, offset=offset, limit=limit, order=order, context=context, count=count) - @api.multi + @api.v7 + def read(self, cr, user, ids, fields=None, context=None, + load='_classic_read'): + return super(ResPartner, self).read( + cr, user, ids, fields=fields, context=context, load=load) + + @api.v8 def read(self, fields=None, load='_classic_read'): return super(ResPartner, self.with_partner_relations_context())\ .read(fields=fields, load=load)