Browse Source

Merge pull request #244 from Antiun/fix-partner_relations_read

[8.0][FIX][partner_relations] Split read method overwrite
pull/246/head
Rafael Blasco 9 years ago
parent
commit
fefe05bbde
  1. 8
      partner_relations/model/res_partner.py

8
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)

Loading…
Cancel
Save