| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="utm_campaign_view_kanban" model="ir.ui.view"> |
| 5 |
<field name="name">utm.campaign.view.kanban</field> |
| 6 |
<field name="model">utm.campaign</field> |
| 7 |
<field name="inherit_id" ref="utm.utm_campaign_view_kanban"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//footer/div" position="inside"> |
| 10 |
<a t-if="record.invoiced_amount" href="#" title="Revenues" role="button" |
| 11 |
groups="sales_team.group_sale_salesman" type="object" name="action_redirect_to_invoiced" |
| 12 |
class="btn-outline-primary rounded-pill me-1 order-1"> |
| 13 |
<span class="badge"> |
| 14 |
<field name="currency_id" invisible="True"/> |
| 15 |
<field name="invoiced_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/> |
| 16 |
</span> |
| 17 |
</a> |
| 18 |
<a t-if="record.quotation_count" href="#" title="Quotations" role="button" |
| 19 |
groups="sales_team.group_sale_salesman" type="object" name="action_redirect_to_quotations" |
| 20 |
class="btn-outline-primary rounded-pill me-1 order-2"> |
| 21 |
<span class="badge"> |
| 22 |
<i class="fa fa-fw fa-money me-1" aria-label="Quotations" role="img"/> |
| 23 |
<field name="quotation_count"/> |
| 24 |
</span> |
| 25 |
</a> |
| 26 |
</xpath> |
| 27 |
</field> |
| 28 |
</record> |
| 29 |
|
| 30 |
<record id="utm_campaign_view_form" model="ir.ui.view"> |
| 31 |
<field name="name">utm.campaign.view.form</field> |
| 32 |
<field name="model">utm.campaign</field> |
| 33 |
<field name="inherit_id" ref="utm.utm_campaign_view_form"/> |
| 34 |
<field name="arch" type="xml"> |
| 35 |
<xpath expr="//div[hasclass('oe_button_box')]" position="inside"> |
| 36 |
<button name="action_redirect_to_invoiced" |
| 37 |
type="object" class="oe_stat_button order-1" icon="fa-usd" groups="sales_team.group_sale_salesman"> |
| 38 |
<field name="invoiced_amount" widget="statinfo" string="Revenues"/> |
| 39 |
</button> |
| 40 |
<button name="action_redirect_to_quotations" |
| 41 |
type="object" class="oe_stat_button order-2" icon="fa-money" groups="sales_team.group_sale_salesman"> |
| 42 |
<field name="quotation_count" widget="statinfo" string="Quotations"/> |
| 43 |
</button> |
| 44 |
</xpath> |
| 45 |
</field> |
| 46 |
</record> |
| 47 |
</odoo> |