mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 20:30:20 -06:00
13 lines
409 B
Python
13 lines
409 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
|
|
|
from flectra import models, fields
|
|
|
|
|
|
class Users(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
flectrabot_state = fields.Selection(selection_add=[
|
|
('onboarding_canned', 'Onboarding canned'),
|
|
], ondelete={'onboarding_canned': lambda users: users.write({'flectrabot_state': 'disabled'})})
|