Skip to content

Commit a203bec

Browse files
committed
add string attrs for tags and kinds fields
1 parent b8b293a commit a203bec

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

spp_base/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
from . import reg_id
44
from . import spp_unique_id
5+
from . import registrant

spp_base/models/registrant.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Part of OpenSPP. See LICENSE file for full copyright and licensing details.
2+
import logging
3+
4+
from odoo import fields, models
5+
6+
_logger = logging.getLogger(__name__)
7+
8+
9+
class OpenSPPResPartner(models.Model):
10+
_inherit = "res.partner"
11+
12+
tags_ids = fields.Many2many("g2p.registrant.tags", string="Registrant Tags")
13+
kind_as_str = fields.Char(related="kind.name", string="String Kind")

0 commit comments

Comments
 (0)