[IMP] crm,website_crm_partner_assign: small view improvements
This commit adds a few minor improvements to crm views: - Add the crm.team currency on opportunity amounts on the crm.team kanban view - Slightly reorganize "My Activities" view for increased usability - Remove the "alias_user_id" field in the crm.team form view because it's a related technical field that is not supposed to be modified there. Task #2314894 closes odoo/odoo#55940 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by: Aurélien Warnon <awa@odoo.com>
This commit is contained in:
committed by
Aurélien Warnon
co-authored by
Aurélien Warnon
parent
7cf8f6f40e
commit
62bda18d1a
@@ -26,11 +26,11 @@ class Team(models.Model):
|
||||
help="Number of leads and opportunities assigned this last month.")
|
||||
opportunities_count = fields.Integer(
|
||||
string='# Opportunities', compute='_compute_opportunities_data')
|
||||
opportunities_amount = fields.Integer(
|
||||
opportunities_amount = fields.Monetary(
|
||||
string='Opportunities Revenues', compute='_compute_opportunities_data')
|
||||
opportunities_overdue_count = fields.Integer(
|
||||
string='# Overdue Opportunities', compute='_compute_opportunities_overdue_data')
|
||||
opportunities_overdue_amount = fields.Integer(
|
||||
opportunities_overdue_amount = fields.Monetary(
|
||||
string='Overdue Opportunities Revenues', compute='_compute_opportunities_overdue_data',)
|
||||
# alias: improve fields coming from _inherits, use inherited to avoid replacing them
|
||||
alias_user_id = fields.Many2one(
|
||||
|
||||
@@ -330,13 +330,13 @@
|
||||
<field name="partner_name" optional="hide"/>
|
||||
<field name="email_from" optional="show"/>
|
||||
<field name="phone" optional="show" class="o_force_ltr"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="city" optional="show"/>
|
||||
<field name="state_id" optional="hide"/>
|
||||
<field name="country_id" optional="show"/>
|
||||
<field name="partner_id" invisible="1"/>
|
||||
<field name="user_id" optional="show" widget="many2one_avatar_user"/>
|
||||
<field name="team_id" optional="show"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="probability" invisible="1"/>
|
||||
<field name="campaign_id" optional="hide"/>
|
||||
@@ -394,7 +394,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="crm_case_calendar_view_leads" model="ir.ui.view">
|
||||
<record id="crm_case_calendar_view_leads" model="ir.ui.view">
|
||||
<field name="name">crm.lead.calendar.lead</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="priority" eval="2"/>
|
||||
@@ -655,6 +655,7 @@
|
||||
<field name="contact_name" optional="show"/>
|
||||
<field name="email_from"/>
|
||||
<field name="phone" class="o_force_ltr"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="city" optional="hide"/>
|
||||
<field name="state_id" optional="hide"/>
|
||||
<field name="country_id" optional="hide"/>
|
||||
@@ -675,7 +676,6 @@
|
||||
<field name="stage_id" optional="show" decoration-bf="1"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="probability" optional="hide"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="show"/>
|
||||
<field name="tag_ids" optional="hide" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
||||
<field name="referred" invisible="1"/>
|
||||
<field name="message_needaction" invisible="1"/>
|
||||
|
||||
@@ -135,7 +135,6 @@
|
||||
<field name="alias_contact"
|
||||
string="Accept Emails From"
|
||||
attrs="{'invisible': [('use_leads', '=', False), ('use_opportunities', '=', False)]}"/>
|
||||
<field name="alias_user_id" string="Assign to"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -215,7 +214,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-4 text-right text-truncate">
|
||||
<field name="opportunities_amount" widget="monetary"/>
|
||||
<field name="opportunities_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" t-if="record.opportunities_overdue_count.raw_value">
|
||||
@@ -227,7 +226,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-4 text-right text-truncate">
|
||||
<field name="opportunities_overdue_amount" widget="monetary"/>
|
||||
<field name="opportunities_overdue_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="priority" position="after">
|
||||
<field name="partner_assigned_id" optional="show"/>
|
||||
<field name="partner_assigned_id" optional="hide"/>
|
||||
<field name="date_partner_assign" invisible="1"/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user