Skip to content

Commit

Permalink
[IMP] stock_barcodes_gs1_secondary_unit: Adapt to refactored stock_ba…
Browse files Browse the repository at this point in the history
…rcodes_gs1 module
  • Loading branch information
sergio-teruel committed Oct 26, 2023
1 parent 7a39df0 commit a571948
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@ class TestStockBarcodesGS1SecondaryUnit(TestStockBarcodesGS1):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.barcode_secondary_uom = "018412598033094"
cls.secondary_unit = cls.env["product.secondary.unit"].create(
{
"product_tmpl_id": cls.product_tracking.product_tmpl_id.id,
"name": "box 8",
"uom_id": cls.product_tracking.uom_id.id,
"factor": 8.0,
"barcode": "8412598033094",
"barcode": "08412598033094",
}
)

def test_wizard_scan_gs1_secondary_unit(self):
# Scanning barcode with package data
self.action_barcode_scanned(self.wiz_scan, self.barcode_secondary_uom)
self.action_barcode_scanned(self.wiz_scan, "0108412598033094")
self.assertEqual(self.wiz_scan.secondary_uom_id, self.secondary_unit)
self.wiz_scan.secondary_uom_qty = 5.0
self.wiz_scan.onchange_secondary_uom_qty()
Expand Down

0 comments on commit a571948

Please sign in to comment.