mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
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:
committed by
Jesus Ramoneda
parent
0757f3c2bc
commit
bdfc921a2e
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user