- In `unlink`, since https://github.com/odoo/odoo/pull/66938 modified is called on self for each batch of 1_000. But it should be called on the batched records. - In `write`, remove useless `records_to_inverse` (there from ORM refactor but never used) - make `_modified_triggers` more deterministic by changing a `set` into `OrderedSet`. closes odoo/odoo#100472 Signed-off-by: Raphael Collet <rco@odoo.com>