Fall 5586: Anpassung Odoo Standard (nur Mitarbeiter)

develop
Ahmed Aly 2018-05-16 18:23:00 +02:00
parent ccfd01af40
commit e5d5db187a
2 changed files with 15 additions and 0 deletions

View File

@ -31,3 +31,4 @@ from . import product
from . import ir_attachment
from . import account
from . import commission_account
from . import res_users

View File

@ -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)