Skip to content
Snippets Groups Projects

Fix analytic code creation when using inheritance by filtering the creation

Merged Etienne Ferriere requested to merge topic/16.0/TG-211-Ositoit into branch/16.0
3 files
+ 12
1
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 5
0
@@ -537,6 +537,11 @@ class MetaAnalytic(models.MetaModel):
for field, field_data in new_record.fields_get().items()
if field
in (list(vals.keys()) + [code_name, code_description])
and field
in [
code_field.name
for code_field in self.env["analytic.code"]._fields
]
},
code_vals,
)
Loading