Browse Source

Country required in res.partner

pull/14/head
EliseDup 9 years ago
parent
commit
37b127c7a8
  1. 2
      beesdoo_base/models/partner.py

2
beesdoo_base/models/partner.py

@ -20,6 +20,8 @@ class Partner(models.Model):
member_card_to_be_printed = fields.Boolean('Print BEES card?')
last_printed = fields.Datetime('Last printed on')
country_id = fields.Many2one(required = True)
@api.onchange('first_name', 'last_name')
def _on_change_name(self):
self.name = concat_names(self.first_name, self.last_name)

Loading…
Cancel
Save