Add model Many2One on ir.model.data

This commit is contained in:
Cédric Krier committed 2024-02-24 17:43:15 +01:00
1 parent 302e92783c
commit dc1f2df99e
3 files changed
+8 -4

No files matched your search

+5 -1
View File
@@ -1264,7 +1264,11 @@ class ModelButtonReset(ModelSQL):
required=True, ondelete='CASCADE')
class ModelData(ModelSQL, ModelView):
class ModelData(
fields.fmany2one(
'model_ref', 'model', 'ir.model,model', "Model",
required=True, ondelete='CASCADE'),
ModelSQL, ModelView):
"Model data"
__name__ = 'ir.model.data'
fs_id = fields.Char('Identifier on File System', required=True,
+2 -2
View File
@@ -4,8 +4,8 @@ this repository contains the full copyright notices and license terms. -->
<form>
<label name="module"/>
<field name="module"/>
<label name="model"/>
<field name="model"/>
<label name="model_ref"/>
<field name="model_ref"/>
<label name="fs_id"/>
<field name="fs_id"/>
<label name="db_id"/>
+1 -1
View File
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="module" optional="0"/>
<field name="model" expand="1"/>
<field name="model_ref" expand="1"/>
<field name="fs_id" expand="1"/>
<field name="db_id" optional="1"/>
<field name="noupdate"/>