Browse Source

add member_card_to_be_printed and last_printed fields

pull/11/head
gregoire 9 years ago
parent
commit
45c3e1031c
  1. 2
      beesdoo_base/models/partner.py
  2. 2
      beesdoo_base/views/partner.xml

2
beesdoo_base/models/partner.py

@ -18,6 +18,8 @@ class Partner(models.Model):
barcode = fields.Char(compute="_get_bar_code", string='Bar Code', store=True)
parent_barcode = fields.Char(compute="_get_bar_code", string='Parent Bar Code', store=True)
member_card_ids = fields.One2many('member.card', 'partner_id')
member_card_to_be_printed = fields.Boolean('Print BEES card?')
last_printed = fields.Datetime('Last printed on')
@api.onchange('first_name', 'last_name')
def _on_change_name(self):

2
beesdoo_base/views/partner.xml

@ -23,6 +23,8 @@
<field name="eater"
attrs="{'invisible': [('company_type', '=', 'company')]}" />
<field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" />
<field name="member_card_to_be_printed"/>
<field name="last_printed"/>
</field>
<xpath expr="//notebook" position="inside">
<page string="Carte de Membre"

Loading…
Cancel
Save