23 lines
492 B
Python
23 lines
492 B
Python
![]() |
from odoo import fields, models
|
||
|
|
||
|
|
||
|
class ContractField(models.Model):
|
||
|
_name = "res.partner.contract.field"
|
||
|
_description = "Contract Field"
|
||
|
|
||
|
description = fields.Char(
|
||
|
string="Description",
|
||
|
translate=True,
|
||
|
default="",
|
||
|
)
|
||
|
name = fields.Char(
|
||
|
string="Name",
|
||
|
required=True,
|
||
|
translate=True,
|
||
|
)
|
||
|
technical_name = fields.Char(
|
||
|
string="Technical Name",
|
||
|
help="Name uses in template",
|
||
|
required=True,
|
||
|
)
|