Hi,
I would like to uppercase the city name displayed in the adress field of the contact widget. How can I do?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I would like to uppercase the city name displayed in the adress field of the contact widget. How can I do?
Got it. Overriding _display_address in res_partner works for me.
To uppercase, works perfectly.
city_name = fields.Char()
@api.onchange('city_name')
def caps_name(self):
if self.city_name :
self.city_name = str(self.city_name).upper()
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up