mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-23 21:01:48 +00:00
25 lines
825 B
Python
25 lines
825 B
Python
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
|
|
# Copyright 2015 Jairo Llopis <jairo.llopis@tecnativa.com>
|
|
# Copyright 2018 Tecnativa - Pedro M. Baeza
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from flectra import models, fields
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
employee_quantity = fields.Integer()
|
|
employee_quantity_range_id = fields.Many2one(
|
|
comodel_name="res.partner.employee_quantity_range",
|
|
string="Employee quantity range",
|
|
help="Range of this partner depending on the employee quantity.",
|
|
)
|
|
|
|
|
|
class ResPartnerEmployeeQuantityRange(models.Model):
|
|
_name = "res.partner.employee_quantity_range"
|
|
_description = "Partner employee quantity range"
|
|
|
|
name = fields.Char(required=True, translate=True)
|