mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
browse is called often enough to call the update routine (even too much)
This commit is contained in:
committed by
Sylvain GARANCHER
parent
8a80de3ced
commit
87ae352f5a
@@ -240,28 +240,6 @@ class PrintingPrinter(models.Model):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# @api.returns('self')
|
|
||||||
# def search(self, cr, user, args, offset=0, limit=None, order=None,
|
|
||||||
# context=None, count=False):
|
|
||||||
# self.update()
|
|
||||||
# _super = super(PrintingPrinter, self)
|
|
||||||
# return _super.search(cr, user, args, offset=offset, limit=limit,
|
|
||||||
# order=order, context=context, count=count)
|
|
||||||
|
|
||||||
@api.v7
|
|
||||||
def read(self, cr, user, ids, fields=None, context=None,
|
|
||||||
load='_classic_read'):
|
|
||||||
# https://github.com/odoo/odoo/issues/3644
|
|
||||||
# self.update(cr, user, context=context)
|
|
||||||
_super = super(PrintingPrinter, self)
|
|
||||||
return _super.read(cr, user, ids, fields=fields, context=context,
|
|
||||||
load=load)
|
|
||||||
|
|
||||||
@api.v8
|
|
||||||
def read(self, fields=None, load='_classic_read'):
|
|
||||||
self.update()
|
|
||||||
return super(PrintingPrinter, self).read(fields=fields, load=load)
|
|
||||||
|
|
||||||
@api.v7
|
@api.v7
|
||||||
def browse(self, cr, uid, arg=None, context=None):
|
def browse(self, cr, uid, arg=None, context=None):
|
||||||
# https://github.com/odoo/odoo/issues/3644
|
# https://github.com/odoo/odoo/issues/3644
|
||||||
|
|||||||
Reference in New Issue
Block a user