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

[cgscop #170] Modification affichage evenement

parent 0548aadd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
<odoo> <odoo>
<data> <data>
<!-- ******************************
*** Inherited Views
****************************** -->
<!-- Agenda Tree View --> <!-- Agenda Tree View -->
<record id="view_calendar_cooperative_tree_inherited" model="ir.ui.view"> <record id="view_calendar_cooperative_tree_inherited" model="ir.ui.view">
<field name="name">calendar.event.cgscop.tree</field> <field name="name">calendar.event.cgscop.tree</field>
...@@ -25,6 +29,7 @@ ...@@ -25,6 +29,7 @@
<field name="type"/> <field name="type"/>
<field name="ur_financial_system_id" options="{'no_open': True, 'no_create': True}" attrs="{'required':[('ur_financial_system_nb', '>', 0)], 'invisible':[('ur_financial_system_nb', '&lt;', 1)]}"/> <field name="ur_financial_system_id" options="{'no_open': True, 'no_create': True}" attrs="{'required':[('ur_financial_system_nb', '>', 0)], 'invisible':[('ur_financial_system_nb', '&lt;', 1)]}"/>
<field name="ur_regional_convention_id" options="{'no_open': True, 'no_create': True}" attrs="{'required':[('ur_regional_convention_nb', '>', 0)], 'invisible':[('ur_regional_convention_nb', '&lt;', 1)]}"/> <field name="ur_regional_convention_id" options="{'no_open': True, 'no_create': True}" attrs="{'required':[('ur_regional_convention_nb', '>', 0)], 'invisible':[('ur_regional_convention_nb', '&lt;', 1)]}"/>
<field name="is_transfered" />
</field> </field>
</field> </field>
</record> </record>
...@@ -50,7 +55,8 @@ ...@@ -50,7 +55,8 @@
type="object" type="object"
name="create_timesheet" name="create_timesheet"
class="oe_highlight" class="oe_highlight"
attrs="{'invisible': ['|', ('project_id', '=', False), ('coop_id', '=', False)]}"/> attrs="{'invisible':
['|', '|', '|', ('project_id', '=', False), ('coop_id', '=', False), ('is_attendee', '!=', True), ('is_transfered', '=', True)]}"/>
</header> </header>
</sheet> </sheet>
<!-- Boutons --> <!-- Boutons -->
...@@ -60,6 +66,13 @@ ...@@ -60,6 +66,13 @@
<!-- Titre --> <!-- Titre -->
<div class="oe_title" position="replace"> <div class="oe_title" position="replace">
<div class="oe_button_box" name="button_box" modifiers="{}">
<button name="do_accept" string="Accepter" states="needsAction,tentative,declined" type="object" icon="fa-check">
</button>
<button name="do_decline" string="Refuser" states="needsAction,tentative,accepted" type="object" icon="fa-times-circle"/>
<button name="do_tentative" widget="boolean_button" class="oe_stat_button" states="needsAction,declined,accepted" string="Incertain" type="object" icon="fa-circle">
</button>
</div>
<div class="oe_title" > <div class="oe_title" >
<div class="oe_edit_only"> <div class="oe_edit_only">
<label for="name"/> <label for="name"/>
...@@ -74,6 +87,9 @@ ...@@ -74,6 +87,9 @@
<notebook position="before"> <notebook position="before">
<group name="event_info" col="1"> <group name="event_info" col="1">
<group> <group>
<field name="state"/>
<field name="is_transfered" widget="toggle_button"/>
<field name="is_attendee" invisible="1"/>
<field name="project_id" options="{'no_open': True, 'no_create': True}"/> <field name="project_id" options="{'no_open': True, 'no_create': True}"/>
<field name="coop_id" options="{'no_open': True, 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/> <field name="coop_id" options="{'no_open': True, 'no_create': True}" domain="[('ur_id', '=', ur_id)]"/>
<field name="ur_id" invisible="1"/> <field name="ur_id" invisible="1"/>
...@@ -179,10 +195,11 @@ ...@@ -179,10 +195,11 @@
<field name="partner_ids" position="before"> <field name="partner_ids" position="before">
<field name="ur_id" invisible="1"/> <field name="ur_id" invisible="1"/>
<field name="coop_id" options="{'no_open': True, 'no_create': True}"/> <field name="coop_id" options="{'no_open': True, 'no_create': True}"/>
<field name="type" options="{'no_open': True, 'no_create': True}"/>
<field name="attendees_initial"/>
</field> </field>
<field name="partner_ids" position="attributes"> <field name="partner_ids" position="attributes">
<attribute name="domain">[('user_ids', '!=', False), ('ur_id', '=', ur_id)]</attribute> <attribute name="domain">[('user_ids', '!=', False), ('ur_id', '=', ur_id)]</attribute>
<field name="type" options="{'no_open': True, 'no_create': True}"/>
</field> </field>
</field> </field>
</record> </record>
...@@ -211,5 +228,6 @@ ...@@ -211,5 +228,6 @@
</field> </field>
</record> </record>
</data> </data>
</odoo> </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