Browse Source

Fix v8 api calls

pull/103/head
Sandy Carter 10 years ago
parent
commit
2e7d596cf4
  1. 3
      partner_relations/model/res_partner_relation.py

3
partner_relations/model/res_partner_relation.py

@ -80,8 +80,7 @@ class ResPartnerRelation(Model):
def get_values(self, dummy_field_names, dummy_arg, context=None): def get_values(self, dummy_field_names, dummy_arg, context=None):
'''Get computed values for record''' '''Get computed values for record'''
values = {} values = {}
on_right_partner = self._on_right_partner(
cr, uid, self.right_partner_id.id, context=context)
on_right_partner = self._on_right_partner(self.right_partner_id.id)
# type_selection_id # type_selection_id
values['type_selection_id'] = ( values['type_selection_id'] = (
((self.type_id.id) * 10) + (on_right_partner and 1 or 0)) ((self.type_id.id) * 10) + (on_right_partner and 1 or 0))

Loading…
Cancel
Save