Skip to content

Commit 8cad0d7

Browse files
marioced-adhoc
mario
authored andcommitted
[MIG] poduct_code_mandatory: Migration to 16.0
Move setUp test class to setUpClass for better performant [ADD] product_code_mandatory: Add contributors
1 parent a37caee commit 8cad0d7

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

product_code_mandatory/README.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Product Code Mandatory
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:ed48efe42666c69b92c54175dfe132a3c88310de79d137e3ef65c13e436c9f80
10+
!! source digest: sha256:8897572a4299897859406955a16af1e98a44c18ef495008346d34d6eb57ab5b1
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -74,6 +74,9 @@ Contributors
7474
* Sudhir Arya <[email protected]>
7575
* Watthanun Khorchai <[email protected]>
7676
* Nedas Žilinskas <[email protected]>
77+
* `Binhex <https://binhex.cloud/>`_:
78+
79+
* Mario Luis Mora <[email protected]>
7780

7881
Maintainers
7982
~~~~~~~~~~~

product_code_mandatory/readme/CONTRIBUTORS.rst

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
* Sudhir Arya <[email protected]>
33
* Watthanun Khorchai <[email protected]>
44
* Nedas Žilinskas <[email protected]>
5+
* `Binhex <https://binhex.cloud/>`_:
6+
7+
* Mario Luis Mora <[email protected]>

product_code_mandatory/static/description/index.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Product Code Mandatory</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:ed48efe42666c69b92c54175dfe132a3c88310de79d137e3ef65c13e436c9f80
370+
!! source digest: sha256:8897572a4299897859406955a16af1e98a44c18ef495008346d34d6eb57ab5b1
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/product-attribute/tree/16.0/product_code_mandatory"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_code_mandatory"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module sets the field internal reference (default_code) of the product
@@ -419,6 +419,10 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
419419
<li>Sudhir Arya &lt;<a class="reference external" href="mailto:sudhir&#64;erpharbor.com">sudhir&#64;erpharbor.com</a>&gt;</li>
420420
<li>Watthanun Khorchai &lt;<a class="reference external" href="mailto:watthanun_t&#64;hotmail.com">watthanun_t&#64;hotmail.com</a>&gt;</li>
421421
<li>Nedas Žilinskas &lt;<a class="reference external" href="mailto:nedas.zilinskas&#64;web-veistamo.fi">nedas.zilinskas&#64;web-veistamo.fi</a>&gt;</li>
422+
<li><a class="reference external" href="https://binhex.cloud/">Binhex</a>:<ul>
423+
<li>Mario Luis Mora &lt;<a class="reference external" href="mailto:m.luis&#64;binhex.cloud">m.luis&#64;binhex.cloud</a>&gt;</li>
424+
</ul>
425+
</li>
422426
</ul>
423427
</div>
424428
<div class="section" id="maintainers">

product_code_mandatory/tests/test_product_code.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44

55

66
class TestProductCode(TransactionCase):
7-
def setUp(self):
8-
super(TestProductCode, self).setUp()
9-
self.product_model = self.env["product.product"]
10-
self.product = self.product_model.create({"name": "Test Product Code"})
7+
@classmethod
8+
def setUpClass(cls):
9+
super().setUpClass()
10+
cls.product_model = cls.env["product.product"]
11+
cls.product = cls.product_model.create({"name": "Test Product Code"})
1112

1213
def test_product_code(self):
1314
"""Check Product Code"""

0 commit comments

Comments
 (0)