mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] Errors in navigation to customer invoices / vendor bills
This commit is contained in:
committed by
mreficent
parent
46260f5c8a
commit
0b0ba917f0
@@ -349,3 +349,13 @@ class AccountAnalyticAccount(models.Model):
|
||||
'target': 'new',
|
||||
'context': ctx,
|
||||
}
|
||||
|
||||
@api.multi
|
||||
def button_show_recurring_invoices(self):
|
||||
self.ensure_one()
|
||||
action = self.env.ref(
|
||||
'contract.act_purchase_recurring_invoices')
|
||||
if self.contract_type == 'sale':
|
||||
action = self.env.ref(
|
||||
'contract.act_recurring_invoices')
|
||||
return action.read()[0]
|
||||
|
||||
Reference in New Issue
Block a user