[UPD] for a reference id field, also allow many2one_reference, not only integer
parent
dc6cb1c07b
commit
f86659911e
|
@ -56,7 +56,7 @@
|
||||||
<field
|
<field
|
||||||
name="id_field_id"
|
name="id_field_id"
|
||||||
attrs="{'invisible': [('mapping_type', '!=', 'by_reference')], 'required': [('mapping_type', '=', 'by_reference')]}"
|
attrs="{'invisible': [('mapping_type', '!=', 'by_reference')], 'required': [('mapping_type', '=', 'by_reference')]}"
|
||||||
domain="[('ttype', '=', 'integer'), ('model_id.model', '=', model)]"
|
domain="[('ttype', 'in', ('integer', 'many2one_reference')), ('model_id.model', '=', model)]"
|
||||||
/>
|
/>
|
||||||
</group>
|
</group>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue