You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
28 lines
1.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Inherited Project.Task Form to add button and smart button-->
|
|
<record id="view_task_form2" model="ir.ui.view">
|
|
<field name="name">
|
|
project.task.view.form.inherit.create.expense.from.task.odoo
|
|
</field>
|
|
<field name="model">project.task</field>
|
|
<field name="inherit_id" ref="project.view_task_form2"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button name="action_create_task_expense"
|
|
string="Create Expense"
|
|
type="object"
|
|
class="oe_highlight"/>
|
|
</xpath>
|
|
<div name="button_box" position="inside">
|
|
<button name="action_view_expense" type="object"
|
|
icon="fa-pencil-square-o"
|
|
class="oe_stat_button"
|
|
attrs="{'invisible': [('expense_count','=', 0)]}">
|
|
<field name="expense_count" widget="statinfo"
|
|
string="Expense"/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|