We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84038d6 commit 6bc067fCopy full SHA for 6bc067f
pos_operating_unit/tests/test_pos_operating_unit_basic.py
@@ -34,3 +34,12 @@ def test_fields_and_assign(self):
34
}
35
)
36
self.assertIn(self.ou, cfg.operating_unit_ids)
37
+
38
+ def test_operating_unit_assignment_via_write(self):
39
+ """Ensure operating_unit_ids can be set via write and read back correctly."""
40
+ cfg = self.env["pos.config"].create(
41
+ {"name": "POS Write Test", "company_id": self.company.id}
42
+ )
43
+ self.assertFalse(cfg.operating_unit_ids)
44
+ cfg.write({"operating_unit_ids": [Command.set([self.ou.id])]})
45
+ self.assertIn(self.ou, cfg.operating_unit_ids)
0 commit comments