Browse Source

[FIX] missing propagation of the context #2

pull/2/head
Guewen Baconnier 11 years ago
parent
commit
b4f783a80a
  1. 3
      partner_firstname/partner.py

3
partner_firstname/partner.py

@ -41,7 +41,8 @@ class ResPartner(Model):
return res return res
def _write_name(self, cursor, uid, partner_id, field_name, field_value, arg, context=None): def _write_name(self, cursor, uid, partner_id, field_name, field_value, arg, context=None):
return self.write(cursor, uid, partner_id, {'lastname': field_value})
return self.write(cursor, uid, partner_id,
{'lastname': field_value}, context=context)
def create(self, cursor, uid, vals, context=None): def create(self, cursor, uid, vals, context=None):
"""To support data backward compatibility we have to keep this overwrite even if we """To support data backward compatibility we have to keep this overwrite even if we

Loading…
Cancel
Save