Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <data>
- <!-- [4417086] https://pastebin.com/sddQqfnr-->
- <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='contact_addresses']/field[@name='child_ids']/form[1]/sheet[1]" position="replace">
- <sheet>
- <field name="type" required="1" widget="radio" options="{'horizontal': true}"/>
- <div class="text-muted oe_edit_only">
- <p class="mb-0" invisible="type != 'contact'">
- <span>Use this to organize the contact details of employees of a given company (e.g. CEO, CFO, ...).</span>
- </p>
- <p class="mb-0" invisible="type != 'invoice'">
- <span>Preferred address for all invoices. Selected by default when you invoice an order that belongs to this company.</span>
- </p>
- <p class="mb-0" invisible="type != 'delivery'">
- <span>Preferred address for all deliveries. Selected by default when you deliver an order that belongs to this company.</span>
- </p>
- <p class="mb-0" invisible="type != 'other'">
- <span>Other address for the company (e.g. subsidiary, ...)</span>
- </p>
- </div>
- <hr/>
- <group>
- <group>
- <field name="x_studio_personne_de_contact" invisible="type != 'contact'"/>
- <field name="x_studio_nom" invisible="type != 'contact'"/>
- <field name="name" string="Nom du bâtiment" required="type == 'contact'" placeholder="e.g. New Address" invisible="type != 'delivery'"/>
- <field name="name" string="Nom du contact" required="type == 'contact'" placeholder="e.g. New Address" invisible="type != 'contact'"/>
- <field name="website" string="Site Web" invisible="type != 'delivery'"/>
- <label for="street" string="Adresse" invisible="type == 'contact'"/>
- <div invisible="type == 'contact'">
- <div class="o_address_format" name="div_address">
- <field name="street" placeholder="Street..." class="o_address_street"/>
- <field name="street2" placeholder="Street 2..." class="o_address_street"/>
- <field name="city" placeholder="City" class="o_address_city"/>
- <field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"/>
- <field name="zip" placeholder="ZIP" class="o_address_zip"/>
- <field name="country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}"/>
- </div>
- </div>
- </group>
- <group>
- <field name="lang" invisible="active_lang_count <= 1"/>
- <field name="ref" string="ID Bruxeo" invisible="type != 'delivery'"/>
- <field name="title" invisible="type != 'contact'"/>
- <field name="function" string="Fonction" invisible="type != 'contact'"/>
- <field name="email" widget="email" invisible="type != 'contact'"/>
- <field name="phone" string="Téléphone 1" widget="phone" invisible="type != 'contact'"/>
- <field name="mobile" string="Téléphone 2" widget="phone" invisible="type != 'contact'"/>
- <field name="x_studio_secteur_dactivit_du_batiment_1" invisible="type != 'delivery'"/>
- <field name="x_studio_nace" invisible="type != 'delivery'"/>
- <field name="x_studio_bail" invisible="type != 'delivery'"/>
- </group>
- </group>
- <notebook name="studio_notebook_5vk_1i8k131d4" invisible="type != 'delivery'">
- <page string="Infos ASBL" name="studio_page_5vk">
- <group name="studio_group_5vk">
- <group name="studio_group_5vk_left">
- <field name="x_studio_asbl"/>
- <field name="x_studio_activit_clri" widget="many2many_tags"/>
- <field name="x_studio_etp"/>
- </group>
- <group name="studio_group_5vk_right">
- <field name="x_studio_fede"/>
- </group>
- </group>
- </page>
- </notebook>
- <group>
- <field name="comment" placeholder="Internal notes..." nolabel="1" colspan="2"/>
- </group>
- <field name="lang" invisible="True"/> <!-- Need to add lang to save default value from parented record -->
- </sheet>
- <!-- -->
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement