Skip to content

Commit

Permalink
[FIX] product_contract: add sol name dependes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Nov 22, 2024
1 parent 0bcce04 commit a3a3dbc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion product_contract/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,14 @@ def _set_contract_line_start_date(self):
start_date = start_date + relativedelta(day=31)
line.date_start = start_date

@api.depends("product_id")
@api.depends(
"product_id",
"contract_start_date_method",
"date_start",
"date_end",
"recurring_rule_type",
"recurring_invoicing_type",
)
def _compute_name(self):
res = super()._compute_name()
for line in self:
Expand Down

0 comments on commit a3a3dbc

Please sign in to comment.