Skip to content

Commit 2568eb9

Browse files
[MIG] product_brand_mrp: Migration to 17.0
1 parent cb52c44 commit 2568eb9

File tree

6 files changed

+41
-1
lines changed

6 files changed

+41
-1
lines changed

product_brand_mrp/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ Contributors
5757
------------
5858

5959
- Francesco Apruzzese <cescoap@gmail.com>
60+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
61+
62+
- Bhavesh Heliconia
6063

6164
Maintainers
6265
-----------

product_brand_mrp/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Product Brand MRP",
66
"summary": """
77
This module allows to work with product_brand in MRP.""",
8-
"version": "16.0.1.0.0",
8+
"version": "17.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/brand",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
- Francesco Apruzzese \<<cescoap@gmail.com>\>
2+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
3+
- Bhavesh Heliconia

product_brand_mrp/static/description/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ <h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
403403
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
404404
<ul class="simple">
405405
<li>Francesco Apruzzese &lt;<a class="reference external" href="mailto:cescoap&#64;gmail.com">cescoap&#64;gmail.com</a>&gt;</li>
406+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
407+
<li>Bhavesh Heliconia</li>
408+
</ul>
409+
</li>
406410
</ul>
407411
</div>
408412
<div class="section" id="maintainers">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import test_product_brand_mrp
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2023 Francesco Apruzzese <cescoap@gmail.com>
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
from odoo.addons.base.tests.common import BaseCommon
4+
5+
6+
class TestMrpProduction(BaseCommon):
7+
@classmethod
8+
def setUpClass(self):
9+
super().setUpClass()
10+
self.product_brand = self.env["product.brand"].create({"name": "Test Brand"})
11+
self.product = self.env["product.product"].create(
12+
{
13+
"name": "Test Product",
14+
"product_brand_id": self.product_brand.id,
15+
}
16+
)
17+
18+
def test_product_brand_on_mrp_production(self):
19+
production = self.env["mrp.production"].create(
20+
{
21+
"product_id": self.product.id,
22+
"product_qty": 10.0,
23+
}
24+
)
25+
self.assertEqual(
26+
production.product_brand_id,
27+
self.product_brand,
28+
"The product_brand_id on MrpProduction "
29+
"should match the brand of the product.",
30+
)

0 commit comments

Comments
 (0)