Skip to content
Extraits de code Groupes Projets
Valider 05b6855a rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[UPD]Update partner form new fields

parent 1acc1946
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -122,7 +122,7 @@ class ResPartner(models.Model): ...@@ -122,7 +122,7 @@ class ResPartner(models.Model):
# ------------------------------------------------------ # ------------------------------------------------------
@api.model @api.model
def _get_default_address_format_simple(self): def _get_default_address_format_simple(self):
return "%(street)s\n%(street2)s\n%(city)s %(zip)s\n" return "%(street)s\n%(street2)s\n%(street3)s\n%(city)s %(zip)s\n"
@api.model @api.model
def _get_address_format_simple(self): def _get_address_format_simple(self):
......
...@@ -386,18 +386,6 @@ ...@@ -386,18 +386,6 @@
attrs="{'invisible': ['|', ('parent_id', '!=', False), ('is_company', '!=', False)]}" attrs="{'invisible': ['|', ('parent_id', '!=', False), ('is_company', '!=', False)]}"
readonly="1" readonly="1"
/> />
<field
name="release_receipt_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('parent_id', '=', False)]}"
widget="selection"
/>
<field
name="agroforestry_involvement_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('parent_id', '=', False)]}"
widget="selection"
/>
</xpath> </xpath>
<xpath expr="//field[@name='function']" position="before"> <xpath expr="//field[@name='function']" position="before">
<field <field
...@@ -417,6 +405,18 @@ ...@@ -417,6 +405,18 @@
attrs="{'invisible': [('parent_id', '=', False)]}" attrs="{'invisible': [('parent_id', '=', False)]}"
options="{'no_open': True, 'no_create': True}" options="{'no_open': True, 'no_create': True}"
/> />
<field
name="release_receipt_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('parent_id', '=', False)]}"
widget="selection"
/>
<field
name="agroforestry_involvement_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('parent_id', '=', False)]}"
widget="selection"
/>
</xpath> </xpath>
<xpath expr="//field[@name='child_ids']" position="attributes"> <xpath expr="//field[@name='child_ids']" position="attributes">
<attribute <attribute
...@@ -476,11 +476,29 @@ ...@@ -476,11 +476,29 @@
<field name="is_legal_representative" widget="boolean_toggle" /> <field name="is_legal_representative" widget="boolean_toggle" />
<field name="mandate_id" /> <field name="mandate_id" />
</xpath> </xpath>
<xpath
expr="//field[@name='child_ids']/form/sheet/group/group/field[@name='mobile']"
position="after"
>
<field name="phone3" widget="phone" />
</xpath>
<xpath <xpath
expr="//field[@name='child_ids']/form/sheet/group/group/field[@name='function']" expr="//field[@name='child_ids']/form/sheet/group/group/field[@name='function']"
position="after" position="after"
> >
<field name="service_department" /> <field name="service_department" />
<field
name="release_receipt_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('parent_id', '=', False)]}"
widget="selection"
/>
<field
name="agroforestry_involvement_id"
options="{'no_open': True, 'no_create': True}"
attrs="{'invisible': [('parent_id', '=', False)]}"
widget="selection"
/>
</xpath> </xpath>
<xpath <xpath
expr="//field[@name='child_ids']/form/sheet/group/group/field[@name='comment']" expr="//field[@name='child_ids']/form/sheet/group/group/field[@name='comment']"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter