| 1 | import { Component } from "@odoo/owl"; |
| 2 | |
| 3 | export class StockValuationReportButtonsBar extends Component { |
| 4 | static template = "stock_account.StockValuationReportButtonsBar"; |
| 5 | static props = {}; |
| 6 | |
| 7 | onClickGenerateEntry() { |
| 8 | return this.env.controller.actionGenerateEntry(); |
| 9 | } |
| 10 | |
| 11 | onClickPDF() { |
| 12 | return this.env.controller.actionPrintReport("pdf"); |
| 13 | } |
| 14 | |
| 15 | onClickXLSX() { |
| 16 | return this.env.controller.actionPrintReport("xlsx"); |
| 17 | } |
| 18 | } |