[FIX] base: fix domain of serialization_field_id in ir model field view

During refactoring of the field view, parent.model has been replaced by
model_id since it is more elegant. (odoo/odoo@4a60a3)

That was correct when you was working directly from the ir.model.field.
But if you was comming from ir.model -> fields -> 'add an item', the
model_id is unknow in the context of pyeval.

This commit close #12455
This commit is contained in:
Jeremy Kersten
2016-06-17 12:13:35 +02:00
parent 8284c7389f
commit e9aa5fdd85
+1 -1
View File
@@ -103,7 +103,7 @@
<page name="advanced" string="Advanced Properties">
<group>
<field name="serialization_field_id"
domain="[('ttype','=','serialized'), ('model_id', '=', model_id)]"
domain="[('ttype','=','serialized'), ('model_id', '=', parent.model)]"
attrs="{'readonly': [('state','=','base')]}"/>
<field name="related"/>
<field name="depends"/>