Browse Source

S0011 - Add a free comment text field in label page

pull/14/head
EliseDup 8 years ago
parent
commit
a10a9069b5
  1. 3
      beesdoo_product/models/beesdoo_product.py
  2. 1
      beesdoo_product/views/beesdoo_product.xml

3
beesdoo_product/models/beesdoo_product.py

@ -24,7 +24,8 @@ class BeesdooProduct(models.Model):
label_to_be_printed = fields.Boolean('Print label?') label_to_be_printed = fields.Boolean('Print label?')
label_last_printed = fields.Datetime('Label last printed on') label_last_printed = fields.Datetime('Label last printed on')
note = fields.Text('Comments')
@api.one @api.one
@api.depends('seller_ids', 'seller_ids.date_start') @api.depends('seller_ids', 'seller_ids.date_start')
def _compute_main_seller_id(self): def _compute_main_seller_id(self):

1
beesdoo_product/views/beesdoo_product.xml

@ -39,6 +39,7 @@
<field name="local_label"/> <field name="local_label"/>
<field name="fair_label"/> <field name="fair_label"/>
<field name="origin_label"/> <field name="origin_label"/>
<field name="note" />
<field name="label_to_be_printed"/> <field name="label_to_be_printed"/>
<field name="label_last_printed"/> <field name="label_last_printed"/>
</group> </group>

Loading…
Cancel
Save