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.

47 lines
1.9 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_task_form2_inherit_project" model="ir.ui.view">
<field name="name">project.task.view.form.inherit</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="funders" string="Funder(s)">
<field name="funder_ids" context="{'default_task_id': active_id}">
<tree editable="bottom">
<field name="task_id" invisible="1"/>
<field name="partner_id"/>
<field name="amount"/>
</tree>
</field>
<group>
<group class="oe_subtotal_footer oe_right" name="project_hours">
<span>
<label class="font-weight-bold" for="amount_total" string="Total"/>
</span>
<field name="amount_total" nolabel="1"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
<record id="view_task_kanban_inherit_project_funders" model="ir.ui.view">
<field name="name">project.task.view.kanban.inherit</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_kanban"/>
<field name="arch" type="xml">
<field name="active" position="after">
<field name="amount_total"/>
</field>
<field name="tag_ids" position="after">
<span attrs="{'invisible': [('amount_total', '=', 0)]}">
Funds: <field name="amount_total"/>
</span>
</field>
</field>
</record>
</odoo>