Browse Source

Traduction vers l'anglais des termes en français dans le code

pull/2/merge
EliseDup 9 years ago
parent
commit
2081a339d4
  1. 4
      beesdoo_base/models/partner.py
  2. 10
      beesdoo_base/views/partner.xml
  3. 2
      beesdoo_base/wizard/member_card.py
  4. 4
      beesdoo_base/wizard/views/member_card.xml
  5. 2
      beesdoo_product/views/beesdoo_product.xml

4
beesdoo_base/models/partner.py

@ -13,8 +13,8 @@ class Partner(models.Model):
child_eater_ids = fields.One2many("res.partner", "parent_eater_id", domain=[('customer', '=', True),
('eater', '=', 'eater')])
parent_eater_id = fields.Many2one("res.partner", string="Parent Worker", readonly=True)
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)
barcode = fields.Char(compute="_get_bar_code", string='Barcode', store=True)
parent_barcode = fields.Char(compute="_get_bar_code", string='Parent Barcode', store=True)
member_card_ids = fields.One2many('member.card', 'partner_id')
member_card_to_be_printed = fields.Boolean('Print BEES card?')

10
beesdoo_base/views/partner.xml

@ -25,17 +25,17 @@
<field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" />
</field>
<xpath expr="//notebook" position="inside">
<page string="Carte de Membre"
<page string="Member Cards"
attrs="{'invisible': ['|', ('customer', '=', False), ('eater', '!=', 'worker_eater')]}">
<separator string="Printing" />
<group>
<field name="member_card_to_be_printed" />
<field name="last_printed" />
</group>
<separator string="Mangeurs" />
<separator string="Eaters" />
<field name="child_eater_ids" widget="many2many_tags" />
<separator string="Cartes" />
<field string="Cartes" name="member_card_ids">
<separator string="Cards" />
<field string="Cards" name="member_card_ids">
<tree editable="bottom">
<field name="barcode" />
<field name="create_date" />
@ -46,7 +46,7 @@
</tree>
</field>
<group>
<button string="Nouvelle Carte" name="%(action_membercard_wizard)d"
<button string="New Card" name="%(action_membercard_wizard)d"
type="action" />
</group>
</page>

2
beesdoo_base/wizard/member_card.py

@ -12,7 +12,7 @@ class NewMemberCardWizard(models.TransientModel):
def _get_default_partner(self):
return self.env.context['active_id']
new_comment = fields.Text('Reason', required=True)
new_comment = fields.Char('Reason', required=True)
partner_id = fields.Many2one('res.partner', default=_get_default_partner)
force_barcode = fields.Char('Force Barcode', groups="beesdoo_base.group_force_barcode")

4
beesdoo_base/wizard/views/member_card.xml

@ -13,9 +13,9 @@
<field name="new_comment" string="Raison" editable="True" />
<field name="partner_id" invisible="1" />
<footer>
<button type="object" name="create_new_card" string="Créer"
<button type="object" name="create_new_card" string="Create"
class="oe_highlight" />
<button special="cancel" string="Annuler" />
<button special="cancel" string="Cancel" />
</footer>
</form>
</field>

2
beesdoo_product/views/beesdoo_product.xml

@ -23,7 +23,7 @@
<attribute name="invisible">1</attribute>
</field>
<xpath expr="//group[@name='inventory']/.." position="after">
<page string="Étiquette">
<page string="Label">
<group>
<group name="label">
<field name="total_with_vat"/>

Loading…
Cancel
Save