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