mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Proper cron execution on multi-company
The invoice generation was only done for the last company found, as it was called outside the loop.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
{
|
||||
'name': 'Contracts Management - Recurring',
|
||||
'version': '10.0.4.3.1',
|
||||
'version': '10.0.4.3.2',
|
||||
'category': 'Contract Management',
|
||||
'license': 'AGPL-3',
|
||||
'author': "OpenERP SA, "
|
||||
|
||||
@@ -365,7 +365,8 @@ class AccountAnalyticAccount(models.Model):
|
||||
('date_end', '=', False),
|
||||
('date_end', '>=', cutoffdate),
|
||||
])
|
||||
return contracts.recurring_create_invoice(limit)
|
||||
contracts.recurring_create_invoice(limit)
|
||||
return True
|
||||
|
||||
@api.multi
|
||||
def action_contract_send(self):
|
||||
|
||||
Reference in New Issue
Block a user