odoo/ext/custom-addons/dp_custom/models/res_users.py

15 lines
386 B
Python

# Copyright 2018-Today datenpol gmbh (<http://www.datenpol.at>)
# License OPL-1 or later (https://www.odoo.com/documentation/user/11.0/legal/licenses/licenses.html#licenses).
from odoo import api, models
class Users(models.Model):
_inherit = 'res.users'
@api.model
def create(self, vals):
vals['customer'] = False
return super(Users, self).create(vals)