From 053b1924e0bb36c4e3907a61438fffb38bad7310 Mon Sep 17 00:00:00 2001
From: Heliconia Solutions
Date: Thu, 28 Nov 2024 16:05:51 +0530
Subject: [PATCH] [MIG] crm_lead_vat: Migration to 18.0
---
crm_lead_vat/README.rst | 40 ++++++++++++----------
crm_lead_vat/__manifest__.py | 2 +-
crm_lead_vat/readme/CONTRIBUTORS.md | 3 +-
crm_lead_vat/static/description/index.html | 19 +++++-----
crm_lead_vat/tests/test_lead.py | 6 ++--
5 files changed, 39 insertions(+), 31 deletions(-)
diff --git a/crm_lead_vat/README.rst b/crm_lead_vat/README.rst
index 0e16bcc7354f..d7bc0aae50fd 100644
--- a/crm_lead_vat/README.rst
+++ b/crm_lead_vat/README.rst
@@ -17,13 +17,13 @@ VAT in leads
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github
- :target: https://github.com/OCA/crm/tree/17.0/crm_lead_vat
+ :target: https://github.com/OCA/crm/tree/18.0/crm_lead_vat
:alt: OCA/crm
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_lead_vat
+ :target: https://translation.odoo-community.org/projects/crm-18-0/crm-18-0-crm_lead_vat
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -42,12 +42,12 @@ Usage
To use this module, you need to:
-- Go to *CRM > Leads*.
-- Open a lead.
-- You will see the new field.
-- If you change vat in partner, it change in lead.
-- If you change vat in lead, a warning will show informing you that if
- you save, vat change in partner.
+- Go to *CRM > Leads*.
+- Open a lead.
+- You will see the new field.
+- If you change vat in partner, it change in lead.
+- If you change vat in lead, a warning will show informing you that if
+ you save, vat change in partner.
Bug Tracker
===========
@@ -55,7 +55,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -70,17 +70,19 @@ Authors
Contributors
------------
-- Rafael Blasco
-- Jairo Llopis
-- Tharathip Chaweewongphan
-- `Tecnativa `__:
+- Rafael Blasco
+- Jairo Llopis
+- Tharathip Chaweewongphan
+- `Tecnativa `__:
- - Stefan Ungureanu
+ - Stefan Ungureanu
-- Emilio Pascual (`Moduon `__)
-- `APSL `__:
+- Emilio Pascual (`Moduon `__)
+- `APSL `__:
- - Antoni Marroig
+ - Antoni Marroig
+
+- Heliconia Solutions Pvt. Ltd.
Maintainers
-----------
@@ -103,6 +105,6 @@ Current `maintainer `__:
|maintainer-EmilioPascual|
-This module is part of the `OCA/crm `_ project on GitHub.
+This module is part of the `OCA/crm `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/crm_lead_vat/__manifest__.py b/crm_lead_vat/__manifest__.py
index 5a84d8d549bc..b358f24e6e9f 100644
--- a/crm_lead_vat/__manifest__.py
+++ b/crm_lead_vat/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "VAT in leads",
"summary": "Add VAT field to leads",
- "version": "17.0.1.0.1",
+ "version": "18.0.1.0.0",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/crm",
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)",
diff --git a/crm_lead_vat/readme/CONTRIBUTORS.md b/crm_lead_vat/readme/CONTRIBUTORS.md
index b291849c872b..a47a85ae4f12 100644
--- a/crm_lead_vat/readme/CONTRIBUTORS.md
+++ b/crm_lead_vat/readme/CONTRIBUTORS.md
@@ -5,4 +5,5 @@
- Stefan Ungureanu
- Emilio Pascual ([Moduon](https://www.moduon.team/))
- [APSL](https://apsl.tech):
- - Antoni Marroig
\ No newline at end of file
+ - Antoni Marroig
+- Heliconia Solutions Pvt. Ltd. \<\>
diff --git a/crm_lead_vat/static/description/index.html b/crm_lead_vat/static/description/index.html
index 61d630265276..8adf60fc75fd 100644
--- a/crm_lead_vat/static/description/index.html
+++ b/crm_lead_vat/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -9,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -369,7 +369,7 @@ VAT in leads
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fd5d37d78ea01679f05c1a52d1e1720c31e2c941682c529f03be2c21bb0c462f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module was written to extend the functionality of CRM leads to
support setting the VAT identification number
(https://en.wikipedia.org/wiki/VAT_identification_number).
@@ -403,7 +403,7 @@
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
This module is maintained by the OCA.
-
+
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
Current maintainer:
-
This module is part of the OCA/crm project on GitHub.
+
This module is part of the OCA/crm project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/crm_lead_vat/tests/test_lead.py b/crm_lead_vat/tests/test_lead.py
index 9c6a8d6b0780..00de91a885f3 100644
--- a/crm_lead_vat/tests/test_lead.py
+++ b/crm_lead_vat/tests/test_lead.py
@@ -8,8 +8,10 @@ class LeadCase(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
- cls.lead = cls.env["crm.lead"].create({"name": __file__, "partner_name": "HÎ"})
- cls.partner = cls.env["res.partner"].create({"name": __file__})
+ cls.lead = cls.env["crm.lead"].create(
+ [{"name": __file__, "partner_name": "HÎ"}]
+ )
+ cls.partner = cls.env["res.partner"].create([{"name": __file__}])
cls.test_field = "ES98765432M"
cls.test2_field = "11111111H"