diff --git a/product_form_sale_link/README.rst b/product_form_sale_link/README.rst
index 625c475f056a..6c209335c384 100644
--- a/product_form_sale_link/README.rst
+++ b/product_form_sale_link/README.rst
@@ -17,13 +17,13 @@ Product Form Sale Link
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
- :target: https://github.com/OCA/sale-workflow/tree/17.0/product_form_sale_link
+ :target: https://github.com/OCA/sale-workflow/tree/18.0/product_form_sale_link
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-product_form_sale_link
+ :target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-product_form_sale_link
: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/sale-workflow&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -53,7 +53,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.
@@ -68,7 +68,8 @@ Authors
Contributors
------------
-- Denis Roussel
+- Denis Roussel
+- Heliconia Solutions Pvt. Ltd.
Maintainers
-----------
@@ -83,6 +84,6 @@ 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.
-This module is part of the `OCA/sale-workflow `_ project on GitHub.
+This module is part of the `OCA/sale-workflow `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/product_form_sale_link/__manifest__.py b/product_form_sale_link/__manifest__.py
index d7a120a5e1a3..bedc491d7c9d 100644
--- a/product_form_sale_link/__manifest__.py
+++ b/product_form_sale_link/__manifest__.py
@@ -5,7 +5,7 @@
"name": "Product Form Sale Link",
"summary": """
Adds a button on product forms to access Sale Lines""",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"license": "AGPL-3",
"category": "Sales",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
diff --git a/product_form_sale_link/models/product_product.py b/product_form_sale_link/models/product_product.py
index 152fb05bed59..f7f73335d118 100644
--- a/product_form_sale_link/models/product_product.py
+++ b/product_form_sale_link/models/product_product.py
@@ -7,12 +7,13 @@
class ProductProduct(models.Model):
_inherit = "product.product"
- sale_lines_count = fields.Integer(
- compute="_compute_sale_lines_count", string="Sales"
- )
+ sale_lines_count = fields.Integer(compute="_compute_sale_lines_count")
def _compute_sale_lines_count(self):
- if not self.user_has_groups("sales_team.group_sale_salesman") or not self.ids:
+ if (
+ not self.env.user.has_group("sales_team.group_sale_salesman")
+ or not self.ids
+ ):
self.sale_lines_count = 0.0
return
domain = [
diff --git a/product_form_sale_link/models/product_template.py b/product_form_sale_link/models/product_template.py
index b48d200a47ee..4c7907530b50 100644
--- a/product_form_sale_link/models/product_template.py
+++ b/product_form_sale_link/models/product_template.py
@@ -11,7 +11,7 @@
class ProductTemplate(models.Model):
_inherit = "product.template"
- sale_lines_count = fields.Float(compute="_compute_sale_lines_count", string="Sales")
+ sale_lines_count = fields.Float(compute="_compute_sale_lines_count")
@api.depends("product_variant_ids.sale_lines_count")
def _compute_sale_lines_count(self):
diff --git a/product_form_sale_link/readme/CONTRIBUTORS.md b/product_form_sale_link/readme/CONTRIBUTORS.md
index 89c79f8e4305..84a4a119075e 100644
--- a/product_form_sale_link/readme/CONTRIBUTORS.md
+++ b/product_form_sale_link/readme/CONTRIBUTORS.md
@@ -1 +1,2 @@
- Denis Roussel \<\>
+- Heliconia Solutions Pvt. Ltd. \<\>
diff --git a/product_form_sale_link/static/description/index.html b/product_form_sale_link/static/description/index.html
index 36d8cc8b7257..d27bb1d3521c 100644
--- a/product_form_sale_link/static/description/index.html
+++ b/product_form_sale_link/static/description/index.html
@@ -8,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.
@@ -274,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 }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@ Product Form Sale Link
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:23b543040af6c40e5edbffd9663874b0ce7a507a25b4c0075e1ad4790931595d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module adds a button on product forms with a link to sale order
lines for that product.
Table of contents
@@ -395,7 +396,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.
-
This module is part of the OCA/sale-workflow project on GitHub.
+
This module is part of the OCA/sale-workflow project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/product_form_sale_link/views/product_product.xml b/product_form_sale_link/views/product_product.xml
index 44432adf46c2..76a39f43687b 100644
--- a/product_form_sale_link/views/product_product.xml
+++ b/product_form_sale_link/views/product_product.xml
@@ -16,7 +16,7 @@
groups="sales_team.group_sale_salesman"
invisible="not sale_ok"
>
-
+
diff --git a/product_form_sale_link/views/product_template.xml b/product_form_sale_link/views/product_template.xml
index 963da97df55c..a35a9a451486 100644
--- a/product_form_sale_link/views/product_template.xml
+++ b/product_form_sale_link/views/product_template.xml
@@ -19,7 +19,7 @@
groups="sales_team.group_sale_salesman"
invisible="not sale_ok"
>
-
+