base_import_match: Add conditionals to fields when importing.

This patch allows to import res.partner records by VAT when is_company==True by default.
This commit is contained in:
Jairo Llopis
2016-05-12 11:34:09 +02:00
committed by Jesus Ramoneda
parent 0757f3c2bc
commit bdfc921a2e
9 changed files with 242 additions and 104 deletions

View File

@@ -16,12 +16,22 @@
</h1>
<group>
<field name="model_id"/>
<field
name="field_ids"
widget="many2many_tags"
options="{
'no_create': True,
}"/>
<field name="field_ids">
<tree editable="bottom">
<field name="field_id"
options="{'no_create': True}"/>
<field name="match_id" invisible="True"/>
<field name="model_id" invisible="True"/>
<field name="conditional"/>
<field
name="imported_value"
attrs="{
'readonly': [
('conditional', '=', False),
],
}"/>
</tree>
</field>
<field name="sequence"/>
</group>
</sheet>