mirror of
https://github.com/bringout/oca-ocb-crm.git
synced 2026-04-25 16:12:04 +02:00
19.0 vanilla
This commit is contained in:
parent
dc68f80d3f
commit
7221b9ac46
610 changed files with 135477 additions and 161677 deletions
|
|
@ -9,34 +9,54 @@
|
|||
<field name="name" widget="radio"/>
|
||||
</group>
|
||||
<group string="Assign this opportunity to">
|
||||
<field name="user_id" domain="[('share', '=', False)]"/>
|
||||
<field name="team_id" options="{'no_open': True, 'no_create': True}" kanban_view_ref="%(sales_team.crm_team_view_kanban)s"/>
|
||||
<field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False)]"/>
|
||||
<field name="team_id" options="{'no_open': True, 'no_create': True}" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}"/>
|
||||
</group>
|
||||
<group string="Opportunities" attrs="{'invisible': [('name', '!=', 'merge')]}">
|
||||
<group string="Opportunities" invisible="name != 'merge'" col="4">
|
||||
<field name="lead_id" invisible="1"/>
|
||||
<field name="duplicated_lead_ids" colspan="2" nolabel="1">
|
||||
<tree>
|
||||
<field name="create_date" widget="date"/>
|
||||
<field name="duplicated_lead_ids" nolabel="1" colspan="4"
|
||||
context="{'search_default_filter_won_status_pending': 1, 'crm_lead_view_list_short': 1}">
|
||||
<list>
|
||||
<field name="create_date"/>
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
<field name="contact_name"/>
|
||||
<field name="country_id" invisible="context.get('invisible_country', True)" options="{'no_open': True, 'no_create': True}"/>
|
||||
<field name="email_from"/>
|
||||
<field name="type" optional="hide"/>
|
||||
<field name="contact_name" optional="show"/>
|
||||
<field name="country_id" column_invisible="context.get('invisible_country', True)" options="{'no_open': True, 'no_create': True}"/>
|
||||
<field name="email_from" optional="show"/>
|
||||
<field name="stage_id"/>
|
||||
<field name="user_id"/>
|
||||
<field name="team_id" kanban_view_ref="%(sales_team.crm_team_view_kanban)s"/>
|
||||
</tree>
|
||||
<field name="user_id" widget="many2one_avatar_user"/>
|
||||
<field name="team_id" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group name="action" attrs="{'invisible': [('name', '!=', 'convert')]}" string="Customer" col="1">
|
||||
<field name="action" nolabel="1" widget="radio"/>
|
||||
<group col="2">
|
||||
<field name="partner_id" widget="res_partner_many2one" context="{'res_partner_search_mode': 'customer', 'show_vat': True}" attrs="{'required': [('action', '=', 'exist')], 'invisible':[('action','!=','exist')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
<div name="action" invisible="name != 'convert'" class="row">
|
||||
<div class="col-3">
|
||||
<field name="action" nolabel="1" widget="radio"/>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="row h-50">
|
||||
<t invisible="lead_partner_name or action != 'create'">
|
||||
<label for="commercial_partner_id" class="col-3 p-0"/>
|
||||
<field name="commercial_partner_id" class="col p-0" string="Company" placeholder="Don't link to a company"/>
|
||||
</t>
|
||||
<t invisible="not lead_partner_name or not lead_contact_name or action != 'create'">
|
||||
<label for="lead_partner_name" class="col-3 p-0"/>
|
||||
<field name="lead_partner_name" class="col p-0" string="Company" placeholder="Don't link to a company"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="row h-50">
|
||||
<t invisible="action != 'exist'">
|
||||
<label for="partner_id" class="col-3 p-0"/>
|
||||
<field name="partner_id" class="col p-0" widget="res_partner_many2one"
|
||||
context="{'res_partner_search_mode': 'customer', 'show_vat': True}"
|
||||
required="action == 'exist'"/>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
<button name="action_apply" string="Create Opportunity" type="object" class="btn-primary" data-hotkey="q"/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
|
|
@ -44,7 +64,6 @@
|
|||
|
||||
<record id="action_crm_lead2opportunity_partner" model="ir.actions.act_window">
|
||||
<field name="name">Convert to opportunity</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">crm.lead2opportunity.partner</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_crm_lead2opportunity_partner"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue