Skip to content
Extraits de code Groupes Projets

[IMP] Added sequence to financial contract name

Fermé Thibaud - Le Filament a demandé de fusionner ajout_sequence vers 16.0
1 file
+ 2
7
Comparer les modifications
  • Côte à côte
  • En ligne
@@ -45,11 +45,11 @@ class FinancialConditionPrecedent(models.Model):
class FinancialConditionPrecedentContract(models.Model):
_name = "financial.condition.precedent.contract"
_description = "Link between a condition precedent and a contract"
_rec_name = "condition_precedent_id"
# ------------------------------------------------------
# Fields declaration
# ------------------------------------------------------
name = fields.Char(compute="_compute_name")
name = fields.Char()
condition_precedent_id = fields.Many2one("financial.condition.precedent")
contract_id = fields.Many2one("financial.contract")
raised = fields.Boolean()
@@ -65,11 +65,6 @@ class FinancialConditionPrecedentContract(models.Model):
# ------------------------------------------------------
# Computed fields / Search Fields
# ------------------------------------------------------
def _compute_name(self):
for condition_precedent_contract in self:
condition_precedent_contract.name = (
condition_precedent_contract.condition_precedent_id.name
)
# ------------------------------------------------------
# Onchange / Constraints
Chargement en cours