mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
Invalidate the cache when the table is created so the table_exists()
method returns a fresh value after creation of the table
This commit is contained in:
committed by
Sylvain GARANCHER
parent
262a5db1e8
commit
b015085e63
@@ -64,6 +64,10 @@ class PrintingPrinterPolling(models.Model):
|
||||
def table_exists(self):
|
||||
return self._model._table_exist(self.env.cr)
|
||||
|
||||
def _create_table(self, cr):
|
||||
super(PrintingPrinterPolling, self)._create_table(cr)
|
||||
self.clear_caches()
|
||||
|
||||
@api.model
|
||||
def find_or_create_unique_record(self):
|
||||
polling = self.find_unique_record()
|
||||
|
||||
Reference in New Issue
Block a user