mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user