mirror of
https://github.com/bringout/oca-ocb-crm.git
synced 2026-04-23 12:32:05 +02:00
19.0 vanilla
This commit is contained in:
parent
dc68f80d3f
commit
7221b9ac46
610 changed files with 135477 additions and 161677 deletions
|
|
@ -1,31 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
|
||||
<!-- Partner kanban view inherit -->
|
||||
<record id="crm_lead_partner_kanban_view" model="ir.ui.view">
|
||||
<field name="name">res.partner.kanban.inherit</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
||||
<field name="priority" eval="10"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="mobile" position="after">
|
||||
<field name="opportunity_count" groups="sales_team.group_sale_salesman"/>
|
||||
</field>
|
||||
<xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
|
||||
<a t-if="record.opportunity_count.value>0" href="#"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
data-type="object" data-name="action_view_opportunity"
|
||||
class="oe_kanban_action oe_kanban_action_a me-1">
|
||||
<span class="badge rounded-pill">
|
||||
<i class="fa fa-fw fa-star" aria-label="Opportunities"
|
||||
role="img" title="Opportunities"/>
|
||||
<t t-out="record.opportunity_count.value"/>
|
||||
</span>
|
||||
</a>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Add contextual button on partner form view -->
|
||||
<record id="view_partners_form_crm1" model="ir.ui.view">
|
||||
<field name="name">view.res.partner.form.crm.inherited1</field>
|
||||
|
|
@ -39,7 +13,7 @@
|
|||
name="action_view_opportunity"
|
||||
icon="fa-star"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
context="{'default_partner_id': active_id, 'default_type':'opportunity'}">
|
||||
context="{'default_partner_id': id, 'default_type':'opportunity'}">
|
||||
<field string="Opportunities" name="opportunity_count" widget="statinfo"/>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue