Skip to content
Extraits de code Groupes Projets
Valider 062f6e02 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] partner form view

parent 4ebdf9d3
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -69,17 +69,13 @@ ...@@ -69,17 +69,13 @@
<attribute <attribute
name="attrs" name="attrs"
>{'invisible': [('is_cooperative','=', True)]}</attribute> >{'invisible': [('is_cooperative','=', True)]}</attribute>
<attribute name="col">3</attribute>
</xpath> </xpath>
<xpath expr="//div[hasclass('oe_title')]" position="attributes"> <xpath expr="//div[hasclass('oe_title')]" position="attributes">
<attribute <attribute
name="attrs" name="attrs"
>{'invisible': [('is_cooperative','=', True)]}</attribute> >{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath> </xpath>
<xpath expr="//form/sheet/group" position="attributes">
<attribute
name="attrs"
>{'invisible': [('is_cooperative','=', True)]}</attribute>
</xpath>
<!-- Affiche les champs de la vue partenaire --> <!-- Affiche les champs de la vue partenaire -->
<field name="parent_id" position="before"> <field name="parent_id" position="before">
...@@ -119,6 +115,8 @@ ...@@ -119,6 +115,8 @@
>base.group_no_one,cgscop_partner.group_cg_administrator</attribute> >base.group_no_one,cgscop_partner.group_cg_administrator</attribute>
<attribute name="readonly">True</attribute> <attribute name="readonly">True</attribute>
</xpath> </xpath>
<field name="street" position="attributes"> <field name="street" position="attributes">
<attribute name="placeholder">Rue</attribute> <attribute name="placeholder">Rue</attribute>
</field> </field>
...@@ -149,6 +147,44 @@ ...@@ -149,6 +147,44 @@
<attribute name="invisible">1</attribute> <attribute name="invisible">1</attribute>
</field> </field>
<xpath expr='//form/sheet/group/group[2]' position="replace"> <xpath expr='//form/sheet/group/group[2]' position="replace">
<group col="1" name="partner_legal_info">
<group
string="Informations juridiques"
attrs="{'invisible': [('is_company', '=', False)]}"
>
<label
for="siret"
class="oe_edit_only"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
<div>
<field
name="siret"
class="oe_edit_only"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
</div>
<label
for="formatted_siret"
class="oe_read_only"
string="SIRET"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
<div>
<field
name="formatted_siret"
class="oe_read_only"
string="SIRET"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
</div>
<field
name="partner_company_type_id"
options="{'no_create': 1}"
/>
<field name="registration_date" />
</group>
</group>
<group <group
col="1" col="1"
name="partner_segment_info" name="partner_segment_info"
...@@ -463,32 +499,6 @@ ...@@ -463,32 +499,6 @@
name="website" name="website"
attrs="{'invisible': [('is_company','=', False)]}" attrs="{'invisible': [('is_company','=', False)]}"
/> />
<label
for="siret"
class="oe_edit_only"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
<div>
<field
name="siret"
class="oe_edit_only"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
</div>
<label
for="formatted_siret"
class="oe_read_only"
string="SIRET"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
<div>
<field
name="formatted_siret"
class="oe_read_only"
string="SIRET"
attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"
/>
</div>
<field <field
name="ur_id" name="ur_id"
options='{"no_open": True, "no_create": True}' options='{"no_open": True, "no_create": True}'
......
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