flectra/addons/rma/views/sales_team_view.xml

85 lines
3.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<record id="crm_team_rma_teams_view_form" model="ir.ui.view">
<field name="name">rma.team.form</field>
<field name="model">crm.team</field>
<field name="inherit_id" ref="sales_team.crm_team_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='options_active']" position="inside">
<div class="o_row" style="display:inherit">
<field name="use_return"/>
<label for="use_return"/>
</div>
</xpath>
</field>
</record>
<record id="crm_team_rma_teams_view_kanban" model="ir.ui.view">
<field name="name">rma.team.kanban</field>
<field name="model">crm.team</field>
<field name="inherit_id"
ref="sale.crm_team_salesteams_view_kanban"/>
<field name="arch" type="xml">
<data>
<xpath expr="//div[hasclass('o_kanban_primary_left')]"
position="inside">
<div>
<button name="%(rma.action_open_rma_request_rmateam)d"
type="action"
class="btn btn-primary mt8">Returns
</button>
<button name="%(rma.action_open_replacement_request_rmateam)d"
type="action"
class="btn btn-primary mt8">Replacements
</button>
</div>
</xpath>
<xpath expr="//t[@name='second_options']"
position="after">
<div class="row" t-if="record.returns_count.raw_value">
<div class="col-xs-8">
<a name="%(rma.action_open_rma_request_rmateam)d"
type="action">
<field name="returns_count"/>
<t t-if="record.returns_count.raw_value == 1">
RMA Request
</t>
<t t-else="">RMA Requests</t>
</a>
</div>
</div>
</xpath>
<xpath expr="//div[hasclass('o_kanban_manage_view')]"
position="inside">
<div>
<a name="%(rma.action_open_rma_request_rmateam)d"
type="action">RMA Requests
</a>
</div>
</xpath>
</data>
</field>
</record>
<record id="rma_view_kanban" model="ir.ui.view">
<field name="name">rma.kanban</field>
<field name="model">crm.team</field>
<field name="inherit_id"
ref="sales_team.crm_team_salesteams_view_kanban"/>
<field name="arch" type="xml">
<data>
<xpath expr="//div[hasclass('o_kanban_manage_reports')]"
position="inside">
<div name="return_request_report">
<a name="%(rma.return_request_action_reports)d"
type="action" context="{'search_default_team_id': active_id}">
RMA Request
</a>
</div>
</xpath>
</data>
</field>
</record>
</flectra>