You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
461 B

  1. # Copyright 2019 Open Source Integrators
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class ResPartner(models.Model):
  5. _name = "res.partner"
  6. _inherit = ["res.partner", "tier.validation", "mail.activity.mixin"]
  7. _state_from = ["new", "to approve"]
  8. _state_to = ["approved"]
  9. state = fields.Selection(
  10. [("new", "New"), ("approved", "Approved")], string="Status", default="new"
  11. )