2018-01-17 08:28:52 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<flectra>
|
2018-03-05 08:31:06 +01:00
|
|
|
<record id="crm_team_rma_teams_view_form" model="ir.ui.view">
|
|
|
|
<field name="name">rma.team.form</field>
|
2018-01-17 08:28:52 +01:00
|
|
|
<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">
|
2018-03-05 08:31:06 +01:00
|
|
|
<field name="use_return"/>
|
|
|
|
<label for="use_return"/>
|
2018-01-17 08:28:52 +01:00
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-03-05 08:31:06 +01:00
|
|
|
<record id="crm_team_rma_teams_view_kanban" model="ir.ui.view">
|
|
|
|
<field name="name">rma.team.kanban</field>
|
2018-01-17 08:28:52 +01:00
|
|
|
<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>
|
2018-03-05 08:31:06 +01:00
|
|
|
<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"
|
2018-01-17 08:28:52 +01:00
|
|
|
type="action"
|
|
|
|
class="btn btn-primary mt8">Replacements
|
|
|
|
</button>
|
|
|
|
</div>
|
2018-03-05 08:31:06 +01:00
|
|
|
|
2018-01-17 08:28:52 +01:00
|
|
|
</xpath>
|
|
|
|
<xpath expr="//t[@name='second_options']"
|
|
|
|
position="after">
|
2018-03-05 08:31:06 +01:00
|
|
|
<div class="row" t-if="record.returns_count.raw_value">
|
2018-01-17 08:28:52 +01:00
|
|
|
<div class="col-xs-8">
|
2018-03-05 08:31:06 +01:00
|
|
|
<a name="%(rma.action_open_rma_request_rmateam)d"
|
2018-01-17 08:28:52 +01:00
|
|
|
type="action">
|
2018-03-05 08:31:06 +01:00
|
|
|
<field name="returns_count"/>
|
|
|
|
<t t-if="record.returns_count.raw_value == 1">
|
|
|
|
RMA Request
|
2018-01-17 08:28:52 +01:00
|
|
|
</t>
|
2018-03-05 08:31:06 +01:00
|
|
|
<t t-else="">RMA Requests</t>
|
2018-01-17 08:28:52 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//div[hasclass('o_kanban_manage_view')]"
|
|
|
|
position="inside">
|
|
|
|
<div>
|
2018-03-05 08:31:06 +01:00
|
|
|
<a name="%(rma.action_open_rma_request_rmateam)d"
|
|
|
|
type="action">RMA Requests
|
2018-01-17 08:28:52 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-03-05 08:31:06 +01:00
|
|
|
<record id="rma_view_kanban" model="ir.ui.view">
|
|
|
|
<field name="name">rma.kanban</field>
|
2018-01-17 08:28:52 +01:00
|
|
|
<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">
|
2018-03-05 08:31:06 +01:00
|
|
|
<div name="return_request_report">
|
|
|
|
<a name="%(rma.return_request_action_reports)d"
|
2018-01-17 08:28:52 +01:00
|
|
|
type="action" context="{'search_default_team_id': active_id}">
|
2018-03-05 08:31:06 +01:00
|
|
|
RMA Request
|
2018-01-17 08:28:52 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</flectra>
|