Skip to content

Commit

Permalink
fixup! [ADD] use product brand dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda committed Jun 4, 2024
1 parent aeffa77 commit 132441b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions l10n_br_delivery_nfe/tests/test_delivery_nfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def test_invoicing_picking_volume_lucro_presumido(self):
self.prod2 = self.env.ref("product.product_product_16")
self._change_user_company(self.env.ref("l10n_br_base.empresa_lucro_presumido"))
picking = self.env.ref("l10n_br_stock_account.lucro_presumido-picking_1")
self.brand_id1 = self.env["product.brand"].create({"name": "marca teste"})
self.brand_id2 = self.env["product.brand"].create({"name": "marca2 teste"})

# Set product volume data
self.prod1.product_nfe40_esp = ""
self.prod1.product_nfe40_marca = "marca teste"
self.prod1.product_brand_id = self.brand_id1
self.prod2.product_nfe40_esp = "esp2 teste"
self.prod2.product_nfe40_marca = "marca2 teste"
self.prod2.product_brand_id = self.brand_id2
self.prod1.weight = 1
self.prod2.weight = 3
self.prod1.net_weight = 1
Expand Down Expand Up @@ -112,10 +114,11 @@ def test_invoicing_picking_volume_with_package_lucro_presumido(self):
self.prod2 = self.env.ref("product.product_product_16")
self._change_user_company(self.env.ref("l10n_br_base.empresa_lucro_presumido"))
picking = self.env.ref("l10n_br_stock_account.lucro_presumido-picking_2")
self.brand_id1 = self.env["product.brand"].create({"name": "marca teste"})

# Set product volume data
self.prod1.product_nfe40_esp = "esp teste"
self.prod1.product_nfe40_marca = "marca teste"
self.prod1.product_brand_id = self.brand_id1
self.prod1.weight = 2
self.prod2.weight = 4
self.prod1.net_weight = 3
Expand Down

0 comments on commit 132441b

Please sign in to comment.