“odoo.py odoo 14” Code-Antworten

odoo.py odoo 14

$ git push https HEAD:feature-1
Gorgeous Gaur

odoo.py odoo 14

start_datetime = fields.Datetime('Start time', default=lambda self: fields.Datetime.now())
Gorgeous Gaur

odoo.py odoo 14

unidecode
Gorgeous Gaur

odoo.py odoo 14

'version': '0.2',
Gorgeous Gaur

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"
Gorgeous Gaur

odoo.py odoo 14

$ git push
Gorgeous Gaur

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)
Gorgeous Gaur

odoo.py odoo 14

from odoo import models, fields, api
Gorgeous Gaur

odoo.py odoo 14

'version': '0.3',
Gorgeous Gaur

Ähnliche Antworten wie “odoo.py odoo 14”

Fragen ähnlich wie “odoo.py odoo 14”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen