docx_report_generation/models/res_partner_contract_field_transient.py
Stepan Savelyev ce237a89d3 [STYLE] fix
2019-12-18 16:26:26 +05:00

22 lines
806 B
Python

from odoo import fields, models
class ContractFieldTransient(models.TransientModel):
_name = "res.partner.contract.field.transient"
_description = "Contract Field Transient"
_contract_wizard_id = fields.Many2one(
"res.partner.contract.wizard", string="Contract", readonly=True,
)
contract_field_id = fields.Many2one("res.partner.contract.field", string="Field",)
name = fields.Char(related="contract_field_id.name", string="Name", readonly=True,)
technical_name = fields.Char(
related="contract_field_id.technical_name",
string="Technical Name",
readonly=True,
)
description = fields.Char(
related="contract_field_id.description", string="Description", readonly=True,
)
value = fields.Char(string="Value", default="",)