PURPOSE Prepare enhancements of sales team membership. SPECIFICATIONS Linting containing * reorder fields according to their use; * order methods according to guidelines (compute, CRUD, actions, tools); * fix some docstrings and typos; * remove unused imports and dead code; * rename files according to guidelines; * move views in their own file for mail.activity and assets; * correctly name data and demo files; * rename some inner methods to ease understanding; LINKS Task ID 2086889 (sales team enhancements) Task ID 2234698 (preparation lint) Community PR odoo/odoo#49520
12 lines
391 B
Python
12 lines
391 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResUsers(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
sale_team_id = fields.Many2one(
|
|
'crm.team', "User's Sales Team",
|
|
help='Sales Team the user is member of. Used to compute the members of a Sales Team through the inverse one2many') |