File tree Expand file tree Collapse file tree 6 files changed +41
-1
lines changed
Expand file tree Collapse file tree 6 files changed +41
-1
lines changed Original file line number Diff line number Diff 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
6164Maintainers
6265-----------
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 11- Francesco Apruzzese \< < cescoap@gmail.com > \>
2+ - [ Heliconia Solutions Pvt. Ltd.] ( https://www.heliconia.io )
3+ - Bhavesh Heliconia
Original file line number Diff line number Diff 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 << a class ="reference external " href ="mailto:cescoap@gmail.com "> cescoap@gmail.com</ a > ></ 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 ">
Original file line number Diff line number Diff line change 1+ from . import test_product_brand_mrp
Original file line number Diff line number Diff line change 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+ )
You can’t perform that action at this time.
0 commit comments