2019-12-10 16:27:36 +05:00
|
|
|
from odoo import fields, models
|
|
|
|
|
|
|
|
|
|
|
|
class ContractField(models.Model):
|
|
|
|
_name = "res.partner.contract.field"
|
|
|
|
_description = "Contract Field"
|
2020-03-05 17:58:57 +05:00
|
|
|
_order = "sequence"
|
2019-12-10 16:27:36 +05:00
|
|
|
|
2020-09-24 00:04:52 +05:00
|
|
|
name = fields.Char(
|
|
|
|
string="Name",
|
|
|
|
required=True,
|
|
|
|
translate=True,
|
|
|
|
)
|
2019-12-10 16:27:36 +05:00
|
|
|
technical_name = fields.Char(
|
2020-09-24 00:04:52 +05:00
|
|
|
string="Technical Name",
|
|
|
|
help="Name uses in template",
|
|
|
|
required=True,
|
|
|
|
)
|
|
|
|
description = fields.Char(
|
|
|
|
string="Description",
|
|
|
|
translate=True,
|
|
|
|
default="",
|
|
|
|
)
|
|
|
|
sequence = fields.Integer(
|
|
|
|
string="Sequence",
|
|
|
|
)
|
|
|
|
visible = fields.Boolean(
|
|
|
|
string="Visible",
|
|
|
|
default=True,
|
2019-12-10 16:27:36 +05:00
|
|
|
)
|