Answers for "odoo.py odoo 14"

0

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)
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

$ git push
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

'version': '0.2',
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

unidecode
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

'version': '0.3',
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

start_datetime = fields.Datetime('Start time', default=lambda self: fields.Datetime.now())
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

$ git push https HEAD:feature-1
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

from odoo import models, fields, api
Posted by: Guest on December-22-2020
0

odoo.py odoo 14

$ git add requirements.txt
$ git add my_module
$ git commit -m "[IMP] my_module: automatically remove special chars in my_module.my_module name field"
Posted by: Guest on December-22-2020

Browse Popular Code Answers by Language