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-25 12:53:44 +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-25 12:53:44 +05:00
|
|
|
string="Technical Name",
|
2021-05-06 18:53:42 +05:00
|
|
|
help="Name for using in templates",
|
2020-09-25 12:53:44 +05:00
|
|
|
required=True,
|
|
|
|
)
|
|
|
|
description = fields.Char(
|
|
|
|
string="Description",
|
2021-05-06 18:53:42 +05:00
|
|
|
help="Description for this field to be showed in fields list in print form creation wizard.",
|
2020-09-25 12:53:44 +05:00
|
|
|
translate=True,
|
|
|
|
default="",
|
|
|
|
)
|
|
|
|
sequence = fields.Integer(
|
|
|
|
string="Sequence",
|
|
|
|
)
|
|
|
|
visible = fields.Boolean(
|
|
|
|
string="Visible",
|
2021-05-06 18:53:42 +05:00
|
|
|
help="To show this field in fields list in print form creation wizard\n"
|
|
|
|
"User can change showed field's values in wizard.",
|
2020-09-25 12:53:44 +05:00
|
|
|
default=True,
|
2019-12-10 16:27:36 +05:00
|
|
|
)
|