Skip to content

Commit

Permalink
[MIG] crm_partner_assign: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Osman committed Nov 19, 2024
1 parent 50f628e commit 439aef5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 4 additions & 2 deletions crm_partner_assign/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

{
"name": "CRM Partner Assign",
"summary": "Assign a Partner to an Opportunity/Lead/Partner to indicate Partnership",
"version": "16.0.0.1.2",
"summary": """
Assign a Partner to an Opportunity/Lead/Partner to indicate Partnership,
""",
"version": "17.0.1.0.0",
"development_status": "Alpha",
"category": "Sales/CRM",
"website": "https://github.com/OCA/crm",
Expand Down
2 changes: 0 additions & 2 deletions crm_partner_assign/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ class CRMLead(models.Model):
help="Partner this case has been assigned to.",
related="partner_contact_assigned_id.commercial_partner_id",
store=True,
readonly=True,
check_company=True,
)
date_partner_assign = fields.Date(
compute="_compute_date_partner_assign",
string="Partner Assignment Date",
readonly=False,
store=True,
copy=True,
help="Last date this case was assigned to a partner",
Expand Down
8 changes: 4 additions & 4 deletions crm_partner_assign/views/crm_lead_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
position="before"
>
<field name="partner_contact_assigned_id" />
<field name="partner_assigned_id" />
<field name="partner_assigned_id" readonly="True" />
</xpath>
<xpath
expr="//group[@name='opportunity_partner']/label[@for='email_from']"
position="before"
>
<field name="partner_contact_assigned_id" />
<field name="partner_assigned_id" />
<field name="partner_assigned_id" readonly="True" />
</xpath>
</field>
</record>
Expand All @@ -31,7 +31,7 @@
<field name="inherit_id" ref="crm.crm_case_tree_view_leads" />
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='country_id']" position="after">
<field name="partner_assigned_id" optional="hide" />
<field name="partner_assigned_id" readonly="True" optional="hide" />
<field name="partner_contact_assigned_id" optional="hide" />
</xpath>
</field>
Expand All @@ -43,7 +43,7 @@
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor" />
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='country_id']" position="after">
<field name="partner_assigned_id" optional="hide" />
<field name="partner_assigned_id" readonly="True" optional="hide" />
<field name="partner_contact_assigned_id" optional="hide" />
</xpath>
</field>
Expand Down

0 comments on commit 439aef5

Please sign in to comment.