[FIX] base: kanban_record doesn't support <field/>

Open the form view of Contacts with some children
Some children have phone number set on them.

Before this commit, the phone was not displayed
This is due to the same reason as #35869

After this commit, the phone number is displayed.
Although widgets can't be supported in this case

closes odoo/odoo#40266

Related: odoo/enterprise#6706
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Lucas Perais (lpe)
2020-01-27 09:31:54 +00:00
parent 9538245267
commit e25aec5631
+2 -2
View File
@@ -339,8 +339,8 @@
<field t-if="record.state_id.raw_value" name="state_id"/>
<field name="country_id"/>
</div>
<div t-if="record.phone.raw_value">Phone: <field name="phone" widget="phone"/></div>
<div t-if="record.mobile.raw_value">Mobile: <field name="mobile" widget="phone"/></div>
<div t-if="record.phone.raw_value">Phone: <t t-esc="record.phone.value"/></div>
<div t-if="record.mobile.raw_value">Mobile: <t t-esc="record.mobile.value"/></div>
</div>
</div>
</t>