mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-12-24 13:21:48 +00:00
16 lines
464 B
Python
16 lines
464 B
Python
# Copyright 2019 Open Source Integrators
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from flectra import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_name = "res.partner"
|
|
_inherit = ["res.partner", "tier.validation", "mail.activity.mixin"]
|
|
_state_from = ["new", "to approve"]
|
|
_state_to = ["approved"]
|
|
|
|
state = fields.Selection(
|
|
[("new", "New"), ("approved", "Approved")], string="Status", default="new"
|
|
)
|