[FIX] - don't play onchange date_start for old lines on contract template change

[FIX] - Fix stop post message

[FIX] - Fix sale_contract_count should count all partner contract

[FIX] - set recurring_next_date to False if contract line stoped at last date invoiced

[FIX] - Group by next_invoice also considers dates in the past
This commit is contained in:
sbejaoui
2019-03-14 16:00:16 +01:00
committed by Pedro M. Baeza
parent c139f2d734
commit d5c94e74bd
5 changed files with 17 additions and 14 deletions

View File

@@ -183,7 +183,6 @@ class AccountAnalyticAccount(models.Model):
)
):
self[field_name] = self.contract_template_id[field_name]
self.recurring_invoice_line_ids._onchange_date_start()
@api.onchange('partner_id')
def _onchange_partner_id(self):
@@ -225,6 +224,7 @@ class AccountAnalyticAccount(models.Model):
contract_line
)
new_lines += contract_line_model.new(vals)
new_lines._onchange_date_start()
return new_lines
@api.multi