fix: invalid usage of before_export in report (#21602)
This commit is contained in:
parent
211bf073c9
commit
60b7b85341
1 changed files with 3 additions and 3 deletions
|
|
@ -49,9 +49,9 @@ class Report(Document):
|
|||
def on_update(self):
|
||||
self.export_doc()
|
||||
|
||||
def before_export(self):
|
||||
self.letterhead = None
|
||||
self.prepared_report = 0
|
||||
def before_export(self, doc):
|
||||
doc.letterhead = None
|
||||
doc.prepared_report = 0
|
||||
|
||||
def on_trash(self):
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue