Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

odoo.py odoo 14

@api.model
def create(self, values):
    if 'name' in values:
        values['name'] = unidecode(values['name'])
    return super(my_module, self).create(values)

def write(self, values):
    if 'name' in values:
        values['name'] = unidecode(values['name'])
    return super(my_module, self).write(values)
Source by www.odoo.com #
 
PREVIOUS NEXT
Tagged: #odoo
ADD COMMENT
Topic
Name
6+2 =