[ADD] partner_profiles: create add-on

This commit is contained in:
Stéphan Sainléger
2022-10-16 18:02:33 +02:00
parent 214a7b869d
commit c651ac4355
16 changed files with 947 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Copyright 2022 Elabore (https://elabore.coop)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
class PartnerProfile(models.Model):
_name = "partner.profile"
_description = "Partner profile to differentiate the attached partner entries"
name = fields.Char(string="Name", required=True, translate=True, readonly=False)
ref = fields.Char(string="Ref", required=True, translate=False, readonly=False)
# TODO: block unlink method.