Add model Many2One on ir.model.data
This commit is contained in:
1 parent
302e92783c
commit
dc1f2df99e
3 files changed
+8
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in new issue
Block a user