Skip to content
Extraits de code Groupes Projets
Valider 6225cdbd rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[IMP] hide unecessary buttons when external

parent 0c9a3ddb
Branches 16.0
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (c) 2024- Le Filament (https://le-filament.com)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<record id="event_external_form_inherit" model="ir.ui.view">
<field name="name">event.external.form.inherit</field>
......@@ -6,6 +10,22 @@
<field name="priority" eval="21" />
<field name="inherit_id" ref="event.view_event_form" />
<field name="arch" type="xml">
<button
name="%(event.event_registration_action_stats_from_event)d"
position="attributes"
>
<attribute
name="attrs"
>{"invisible":[("is_external", "=", True)]}</attribute>
</button>
<button
name="%(event.act_event_registration_from_event)d"
position="attributes"
>
<attribute
name="attrs"
>{"invisible":[("is_external", "=", True)]}</attribute>
</button>
<xpath expr="//group/field[@name='active']" position="after">
<field name="is_external" />
<field
......@@ -35,4 +55,23 @@
</notebook>
</field>
</record>
<record id="website_event_external_form_inherit" model="ir.ui.view">
<field name="name">website.event.external.form.inherit</field>
<field name="model">event.event</field>
<field name="priority" eval="21" />
<field name="inherit_id" ref="website_event.event_event_view_form" />
<field name="arch" type="xml">
<xpath expr="//label[@for='menu_register_cta']" position="attributes">
<attribute
name="attrs"
>{"invisible":[("is_external", "=", True)]}</attribute>
</xpath>
<field name='menu_register_cta' position="attributes">
<attribute
name="attrs"
>{"invisible":[("is_external", "=", True)]}</attribute>
</field>
</field>
</record>
</odoo>
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