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
417 B

  1. # Copyright 2022 Ooops Ashish Hirpara <https://ooops404.com>
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. from odoo import api, models
  4. class ResPartner(models.Model):
  5. _inherit = "res.partner"
  6. @api.model
  7. def create(self, vals):
  8. res = super(ResPartner, self).create(vals)
  9. res._onchange_mobile_validation()
  10. res._onchange_phone_validation()
  11. return res