Cache invoices

All the data of invoices are static, so it would be nice to cache it
to get better performance.

Change-Id: Idb9fb970350ddb9bc1dacedd177301ad84913e4c
This commit is contained in:
Feilong Wang 2017-08-02 06:49:47 +12:00
parent d906c733a2
commit 19e1a8ccb5
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ class OdooDriver(driver.BaseDriver):
return detail_dict
@cache.memoize
def get_invoices(self, start, end, project_id, detailed=False):
"""Get history invoices from Odoo given a time range.