Dear all.
I hope everyone safe.
On Odoo, when we issue a supplier bill, we can see the VAT number right next to supplier name (suppler_name - vat_number on partner_id field), when we're choosing the supplier from the partner_id field.
I need to achieve the same effect on customer invoices.
So, when user clicks on the partner_id many2one field, I need to show "Customer Name - VAT_NUMBER".
I look into the supplier bill xml and found:
<group modifier = {}>...
<field string="Supplier"
name="partner_id"
widget="res_partner_many2one"
context="{'default_customer': 0,
'search_default_supplier': 1,
'default_supplier': 1,
'default_is_company': True,
'show_vat': True}"
domain="[('supplier', '=', True)]"
on_change="1"
can_create="true"
can_write="true"
modifiers="{'readonly':[['state','not in',['draft']]]}"/>
...
</group>
On the customer invoice I have:
<field string="Customer"
name="partner_id"
widget="res_partner_many2one"
context="{'search_default_customer':1,
'show_address': 1,
'default_is_company': True,
'show_vat': True}"
options="{"always_reload": True,
"no_quick_create": True}"
domain="[('customer', '=', True)]"
required="1"/>
...
I cannot find any option, widget or field that allows me to achieve the same effect.
Looking for both codes, I thought the "show_vat" did the trick but it's already selected for the customer invoices and I cannot get the same effect.
Can anyone help me please?
Thank you all very much and keep safe
PM
UPDATE: I need do show the VAT number on the partner_id field itself when user is selecting the customer.
UPDATE II: Please refer to this image: https://ibb.co/567p81x