[FIX] partner_autocomplete: Partner Autocomplete on res.company
Partner Autocomplete wasn't available anymore on the name/VAT of `res.company` records since its Owl conversion. closes odoo/odoo#103886 X-original-commit: f12176755a97bcee66722d9d9281ae7ac6424dbc Signed-off-by: Georis François (fge) <fge@odoo.com> Signed-off-by: Louis Baudoux (lba) <lba@odoo.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<templates>
|
||||
<t t-name="partner_autocomplete.PartnerAutoCompleteCharField" t-inherit="web.CharField" owl="1">
|
||||
<xpath expr="//t[@t-else='']" position="before">
|
||||
<t t-elif="props.record.data.company_type === 'company'">
|
||||
<t t-elif="props.record.resModel !== 'res.partner' || props.record.data.company_type === 'company'">
|
||||
<AutoComplete
|
||||
value="props.value || ''"
|
||||
sources="sources"
|
||||
|
||||
Reference in New Issue
Block a user