Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <data>
- <!-- remove the field the add them in a way thatcan make them invisble without having everything weird -->
- <xpath expr="/form[1]/sheet[1]/group[1]/group[1]/label[1]" position="replace"/>
- <xpath expr="/form[1]/sheet[1]/group[1]/group[1]/div[2]/field[1]" position="replace"/>
- <xpath expr="/form[1]/sheet[1]/group[1]/group[1]/span[1]" position="before">
- <field name="x_studio_personne_de_contact" invisible="is_company or type != 'contact'"/>
- <field name="x_studio_nom" invisible="is_company or type != 'contact'"/>
- <field name="website" string="Website" invisible="is_company or type != 'delivery'"/>
- </xpath>
- <xpath expr="/form[1]/sheet[1]/group[1]/group[1]/div[1]/div[1]/field[1]" position="attributes">
- <attribute name="invisible">True</attribute>
- </xpath>
- <xpath expr="/form[1]/sheet[1]/group[1]/group[1]/div[1]" position="after">
- <field name="vat" invisible="1"/>
- <field name="x_studio_nombre_btiments" invisible="type != "delivery""/>
- <field name="x_studio_superficie_m" invisible="type != "delivery""/>
- <field name="x_studio_superficie_formulaire" invisible="type != "delivery""/>
- </xpath>
- <!-- -->
- <xpath expr="//form[1]/sheet[1]/group[1]/group[2]" position="replace">
- <!-- Be able to make fields invisible for the building (type == delivery) -->
- <group>
- <field name="lang" invisible="active_lang_count <= 1 or set(category_id).intersection([2])"/>
- <field name="title" options="{"no_open": True}" placeholder="e.g. Mister" invisible="is_company or type == 'delivery'"/>
- <field name="function" string="Fonction" placeholder="e.g. Sales Director" invisible="is_company or type == 'delivery'"/>
- <field name="email" widget="email" context="{'gravatar_image': True}" required="user_ids" invisible="type == 'delivery'"/>
- <field name="phone" string="Téléphone 1" widget="phone" invisible="type == 'delivery'"/>
- <field name="mobile" string="Téléphone 2" widget="phone" invisible="type == 'delivery'"/>
- <field name="ref" string="ID Bruxeo" invisible="is_company or type != 'delivery'"/>
- <field name="x_studio_secteur_dactivit_du_batiment_1" invisible="is_company or type != 'delivery'"/>
- <field name="x_studio_nace" invisible="is_company or type != 'delivery'"/>
- <field name="x_studio_bail" invisible="is_company or type != 'delivery'"/>
- <field name="category_id" widget="many2many_tags" options="{'color_field': 'color'}" placeholder="e.g. "B2B", "VIP", "Consulting", ..."/>
- </group>
- </xpath>
- <!-- -->
- <!-- new tab for ASBL info -->
- <xpath expr="/form[1]/sheet[1]/notebook[1]" position="inside">
- <page string="Info ASBL" name="studio_page_8b1_1ih0nfc9m" invisible="type != 'delivery'">
- <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>
- </xpath>
- <!-- -->
- <xpath expr="/form[1]/sheet[1]/notebook[1]/page[2]/group[1]/group[1]/field[1]" position="attributes">
- <attribute name="string">Conseiller énergie</attribute>
- </xpath>
- </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement