Skip to content

Commit

Permalink
[MIG] product_document_domain: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Jan 8, 2025
1 parent 9576698 commit dfe7e98
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
12 changes: 7 additions & 5 deletions product_document_domain/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Product Document Domain
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/17.0/product_document_domain
:target: https://github.com/OCA/product-attribute/tree/18.0/product_document_domain
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_document_domain
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_document_domain
: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/product-attribute&target_branch=17.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -60,7 +60,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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 <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_document_domain%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/product-attribute/issues/new?body=module:%20product_document_domain%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand All @@ -81,6 +81,8 @@ Contributors
- Valentin Vinagre
- Harald Panten

- Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>

Maintainers
-----------

Expand All @@ -102,6 +104,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-tisho99|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/17.0/product_document_domain>`_ project on GitHub.
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_document_domain>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion product_document_domain/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Product Document Domain",
"summary": "More user friendly domain and new filters for product documents",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Product",
"website": "https://github.com/OCA/product-attribute",
"author": "Sygel, Odoo Community Association (OCA)",
Expand Down
1 change: 1 addition & 0 deletions product_document_domain/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
- Alberto Martínez
- Valentin Vinagre
- Harald Panten
- Heliconia Solutions Pvt. Ltd. \<<https://www.heliconia.io>\>
15 changes: 15 additions & 0 deletions product_document_domain/tests/test_product_document_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,18 @@ def test_document_counts(self):
self.assertEqual(self.product_tmpl.product_document_count, 1)
self.assertEqual(self.product_var_1.product_document_count, 2)
self.assertEqual(self.product_var_2.product_document_count, 1)

def test_product_action_open_documents(self):
"""Test the document action for product variants"""
action = self.product_var_1.action_open_documents()
self.assertEqual(
action["context"]["default_parent_res_id"], self.product_tmpl.id
)
self.assertFalse(action["context"]["search_default_context_variant"])
self.assertFalse(action["context"]["search_default_context_template"])
self.assertTrue(action["context"]["search_default_context_variant_template"])

def test_template_action_open_documents(self):
"""Test the document action for product template"""
action = self.product_tmpl.action_open_documents()
self.assertTrue(action["context"]["search_default_context_template"])

0 comments on commit dfe7e98

Please sign in to comment.