27 lines
1016 B
XML
27 lines
1016 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--
|
|
add Appointment Button in Project app
|
|
-->
|
|
<record id="view_task_appointment_from_project" model="ir.ui.view">
|
|
<field name="name">view.task.appointment.from.fsm</field>
|
|
<field name="model">project.task</field>
|
|
<field name="inherit_id" ref="project.view_task_form2"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<button
|
|
class="oe_stat_button"
|
|
name="action_view_appointment"
|
|
icon="fa-calendar" type="object"
|
|
invisible="not calendar_event_id or not allow_billable or has_template_ancestor or has_project_template"
|
|
>
|
|
<div class="o_stat_info">
|
|
<span class="o_stat_text">Appointment</span>
|
|
</div>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|