Browse Source

[FIX][TASK] Bug pour enlever un mangeur d'un travailleur : Découplage du parent travailleur et des contacts

pull/14/head
Thibault Francois 8 years ago
parent
commit
c497ff2731
  1. 1
      beesdoo_base/models/partner.py
  2. 6
      beesdoo_base/views/partner.xml

1
beesdoo_base/models/partner.py

@ -84,7 +84,6 @@ class Partner(models.Model):
'is_customer' : True,
'eater' : 'eater',
'parent_eater_id' : self.id,
'parent_id' : self.id,
'email' : email,
'country_id' : self.country_id.id
}

6
beesdoo_base/views/partner.xml

@ -39,7 +39,7 @@
<field name="last_printed" />
</group>
<separator string="Eaters" />
<field name="child_eater_ids" widget="many2many_tags" />
<field name="child_eater_ids" widget="many2many_tags" options="{'no_create': True}" context="{'default_eater' : 'eater', 'default_customer' : True}"/>
<group>
<button string="New Eater" name="%(action_eater_wizard)d"
type="action" />
@ -72,6 +72,10 @@
<button name="toggle_active" position="attributes">
<attribute name="groups" />
</button>
<!-- Temporary fix for the partner_view -->
<xpath expr="//field[@name='customer']" position='before'>
<field name="is_company" invisible="True"/>
</xpath>
</field>
</record>

Loading…
Cancel
Save