mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-22 16:12:10 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -7,27 +7,39 @@
|
|||
<field name="inherit_id" ref="mail.mail_activity_view_form_popup"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='date_deadline']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('activity_category', '=', 'meeting')]}</attribute>
|
||||
<attribute name="invisible">activity_category == 'meeting'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='user_id']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('activity_category', '=', 'meeting')]}</attribute>
|
||||
<attribute name="invisible">activity_category == 'meeting'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@id='mail_activity_schedule']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': ['|', ('activity_category', 'in', ['meeting', 'phonecall']), ('id', '!=', False)]}</attribute>
|
||||
<attribute name="invisible">activity_category in ['meeting', 'phonecall'] or id</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@id='mail_activity_save']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('activity_category', '!=', 'phonecall'), ('id', '=', False)]}</attribute>
|
||||
<attribute name="invisible">activity_category != 'phonecall' and not id</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_done']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': ['|', ('activity_category', '=', 'meeting'), ('chaining_type', '=', 'trigger')]}</attribute>
|
||||
<attribute name="invisible">activity_category == 'meeting' or chaining_type == 'trigger'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='note']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': [('activity_category', '=', 'meeting')]}</attribute>
|
||||
<attribute name="invisible">activity_category == 'meeting'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='summary']" position="attributes">
|
||||
<attribute name="invisible" add="activity_category == 'meeting'" separator="or"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='note']" position="before">
|
||||
<div invisible="activity_category != 'meeting'" class="text-muted text-center w-100">
|
||||
<div>
|
||||
<i class="fa fa-9x fa-calendar p-3" title="Calendar" aria-hidden="true"/>
|
||||
</div>
|
||||
<p>Schedule a meeting in your calendar</p>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//button[@name='action_close_dialog']" position="before">
|
||||
<field name="calendar_event_id" invisible="1" />
|
||||
<button string="Open Calendar"
|
||||
attrs="{'invisible': ['|', ('activity_category', 'not in', ['meeting', 'phonecall']), ('calendar_event_id', '!=', False)]}"
|
||||
<button string="Schedule"
|
||||
close="1"
|
||||
invisible="activity_category != 'meeting' or calendar_event_id"
|
||||
name="action_create_calendar_event"
|
||||
type="object"
|
||||
class="btn-primary"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue