Commit cd0dfd9
fix: audit_create uses @api.model breaking model_create_multi overrides
audit_create was decorated with @api.model (single-dict signature) and
called origin(self, vals) with a single dict. This bypassed the
@api.model_create_multi wrapper on downstream create overrides, causing
their logic to be silently skipped when audit rules are active.
Changed audit_create to use @api.model_create_multi so it passes
vals_list through the origin chain correctly. Also updated the Markup
sanitization loop to handle multiple records.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b99d82c commit cd0dfd9
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments