[STYLE] fix

This commit is contained in:
Stepan Savelyev 2019-12-18 16:26:26 +05:00
parent 45999b3aa0
commit ce237a89d3
2 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ class ContractField(models.Model):
_name = "res.partner.contract.field" _name = "res.partner.contract.field"
_description = "Contract Field" _description = "Contract Field"
description = fields.Char(string="Description", translate=True, default="",)
name = fields.Char(string="Name", required=True, translate=True,) name = fields.Char(string="Name", required=True, translate=True,)
technical_name = fields.Char( technical_name = fields.Char(
string="Technical Name", help="Name uses in template", required=True, string="Technical Name", help="Name uses in template", required=True,
) )
description = fields.Char(string="Description", translate=True, default="",)

View File

@ -9,12 +9,12 @@ class ContractFieldTransient(models.TransientModel):
"res.partner.contract.wizard", string="Contract", readonly=True, "res.partner.contract.wizard", string="Contract", readonly=True,
) )
contract_field_id = fields.Many2one("res.partner.contract.field", string="Field",) 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( technical_name = fields.Char(
related="contract_field_id.technical_name", related="contract_field_id.technical_name",
string="Technical Name", string="Technical Name",
readonly=True, readonly=True,
) )
name = fields.Char(related="contract_field_id.name", string="Name", readonly=True,)
description = fields.Char( description = fields.Char(
related="contract_field_id.description", string="Description", readonly=True, related="contract_field_id.description", string="Description", readonly=True,
) )