Fall 5586: Anpassung Odoo Standard (nur Mitarbeiter)
parent
ccfd01af40
commit
e5d5db187a
|
|
@ -31,3 +31,4 @@ from . import product
|
||||||
from . import ir_attachment
|
from . import ir_attachment
|
||||||
from . import account
|
from . import account
|
||||||
from . import commission_account
|
from . import commission_account
|
||||||
|
from . import res_users
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
# 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)
|
||||||
Loading…
Reference in New Issue