Skip to content

Commit

Permalink
[18.0][MIG] product_multi_company: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BertVGroenendael committed Nov 26, 2024
1 parent 4c6184a commit 4437b25
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions product_multi_company/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ Contributors
- Prabakaran <[email protected]>
- Karthik <[email protected]>

- `Dynapps <https://www.dynapps.eu>`__:

- Bert Van Groenendael <[email protected]>

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

Expand Down
2 changes: 2 additions & 0 deletions product_multi_company/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
- [Sodexis](https://sodexis.com):
- Prabakaran \<<[email protected]>\>
- Karthik \<<[email protected]>\>
- [Dynapps](https://www.dynapps.eu):
- Bert Van Groenendael \<<[email protected]>\>
4 changes: 4 additions & 0 deletions product_multi_company/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Karthik &lt;<a class="reference external" href="mailto:karthik&#64;sodexis.com">karthik&#64;sodexis.com</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="https://www.dynapps.eu">Dynapps</a>:<ul>
<li>Bert Van Groenendael &lt;<a class="reference external" href="mailto:bert.vangroenendael&#64;dynapps.eu">bert.vangroenendael&#64;dynapps.eu</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
8 changes: 6 additions & 2 deletions product_multi_company/tests/test_product_multi_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,19 @@ def test_search_product(self):
)
searched_templates = self.env["product.template"].search(
[
("company_id", "in", [self.company_1.id, False]),
("id", "in", expected_products.product_tmpl_id.ids),
"|",
("company_id", "=", self.company_1.id),
("company_id", "=", False),
]
)
self.assertEqual(searched_templates, expected_products.product_tmpl_id)
searched_products = self.product_obj.search(
[
("company_id", "in", [self.company_1.id, False]),
("id", "in", expected_products.ids),
"|",
("company_id", "=", self.company_1.id),
("company_id", "=", False),
]
)
self.assertEqual(searched_products, expected_products)
Expand Down

0 comments on commit 4437b25

Please sign in to comment.