diff --git a/stock_inventory_discrepancy/static/description/icon.png b/stock_inventory_discrepancy/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_inventory_discrepancy/static/description/icon.png differ diff --git a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py index 1a5304308..f01664b01 100644 --- a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py +++ b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py @@ -162,11 +162,11 @@ class TestInventoryDiscrepancy(TransactionCase): """Test if a user error raises when a stock user tries to update the qty for a product and the correction is a discrepancy over the threshold.""" - upd_qty = self.obj_upd_qty_wizard.create({ + upd_qty = self.obj_upd_qty_wizard.sudo(self.user).create({ 'product_id': self.product1.id, 'product_tmpl_id': self.product1.product_tmpl_id.id, 'new_quantity': 10.0, 'location_id': self.test_loc.id, }) with self.assertRaises(UserError): - upd_qty.sudo(self.user).change_product_qty() + upd_qty.change_product_qty()