Skip to content

Commit

Permalink
[ADD] zpl_printer: expose zpl printing to api calls
Browse files Browse the repository at this point in the history
For additional external automation, it is reasonable to have a simple api to get zpl data
  • Loading branch information
mohs8421 committed Sep 10, 2024
1 parent 646df3a commit 16675f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zpl_printer/model/ir_actions_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ class IrActionsReport(models.Model):
"qweb-zpl": "cascade",
},
)

def render_zpl(self, report_ref, docids, data=None):
return self._render_qweb_text(report_ref, docids, data)

Check warning on line 15 in zpl_printer/model/ir_actions_report.py

View check run for this annotation

Codecov / codecov/patch

zpl_printer/model/ir_actions_report.py#L15

Added line #L15 was not covered by tests

0 comments on commit 16675f1

Please sign in to comment.