Browse Source

[MERGE][S0011bis] Add note on etiquette

pull/14/head
Thibault Francois 8 years ago
parent
commit
0fafe49772
  1. 1
      beesdoo_product/models/beesdoo_product.py
  2. 9
      beesdoo_product/views/beesdoo_product.xml
  3. 8
      beesdoo_product/wizard/views/label_printing_utils.xml

1
beesdoo_product/models/beesdoo_product.py

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

9
beesdoo_product/views/beesdoo_product.xml

@ -39,12 +39,13 @@
<field name="local_label"/>
<field name="fair_label"/>
<field name="origin_label"/>
<field name="label_to_be_printed"/>
<field name="label_to_be_printed"/>
<field name="label_last_printed"/>
</group>
</group>
</group>
<group>
<field name="note" />
</group>
</page>
</xpath>
</field>

8
beesdoo_product/wizard/views/label_printing_utils.xml

@ -10,9 +10,9 @@
<button
type="object"
name="request_printing"
string="Demander l'impression d'un label"
string="Request label printing"
class="oe_highlight" />
<button special="cancel" string="Annuler" />
<button special="cancel" string="Cancel" />
</footer>
</form>
</field>
@ -36,9 +36,9 @@
<button
type="object"
name="set_as_printed"
string="Marquer les labels comme imprimés"
string="Set labels as printed"
class="oe_highlight" />
<button special="cancel" string="Annuler" />
<button special="cancel" string="Cancel" />
</footer>
</form>
</field>

Loading…
Cancel
Save