project/views/res_partner_views.xml

20 lines
962 B
XML
Raw Normal View History

2024-04-12 12:07:51 +03:00
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_task_partner_info_form" model="ir.ui.view">
<field name="name">res.partner.task.buttons</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="7"/>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button class="oe_stat_button" type="action" name="%(project_task_action_from_partner)d"
groups="project.group_project_user"
context="{'search_default_partner_id': id, 'default_partner_id': id}" invisible="task_count == 0"
icon="fa-tasks">
<field string="Tasks" name="task_count" widget="statinfo"/>
</button>
</div>
</field>
</record>
</odoo>