Skip to content

Commit

Permalink
[MIG] product_supplierinfo_code: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Oct 1, 2024
1 parent d3cd539 commit 88e53ab
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions product_supplierinfo_code/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Contributors
------------

- Denis Roussel <[email protected]>
- `360ERP <https://www.360erp.com>`__:

- Andrea Stirpe

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion product_supplierinfo_code/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Product Supplierinfo Code",
"summary": """
Allows to get main supplierinfo product_code on product level""",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
Expand Down
2 changes: 2 additions & 0 deletions product_supplierinfo_code/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- Denis Roussel \<<[email protected]>\>
- [360ERP](https://www.360erp.com):
- Andrea Stirpe
4 changes: 4 additions & 0 deletions product_supplierinfo_code/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li>Denis Roussel &lt;<a class="reference external" href="mailto:denis.roussel&#64;acsone.eu">denis.roussel&#64;acsone.eu</a>&gt;</li>
<li><a class="reference external" href="https://www.360erp.com">360ERP</a>:<ul>
<li>Andrea Stirpe</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
6 changes: 3 additions & 3 deletions product_supplierinfo_code/tests/test_supplierinfo_code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2021 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import SavepointCase
from odoo.tests.common import TransactionCase


class TestSupplierinfoCode(SavepointCase):
class TestSupplierinfoCode(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand All @@ -19,7 +19,7 @@ def setUpClass(cls):
# Set sequence on supplierinfos
cls.product.seller_ids.write({"sequence": 10})
cls.product_supplierinfo.sequence = 1
cls.product.invalidate_cache()
cls.product._invalidate_cache()

def test_supplierinfo_code(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion product_supplierinfo_code/views/product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<field name="inherit_id" ref="product.product_template_tree_view" />
<field name="arch" type="xml">
<field name="name" position="before">
<field name="supplier_product_code" />
<field name="supplier_product_code" optional="show" />
</field>
</field>
</record>
Expand Down

0 comments on commit 88e53ab

Please sign in to comment.