You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
504 B

  1. from odoo import fields, models
  2. class AccountInvoiceReport(models.Model):
  3. _inherit = "account.invoice.report"
  4. release_capital_request = fields.Boolean(string="Release capital request")
  5. def _select(self):
  6. return super(AccountInvoiceReport, self)._select() + ", sub.release_capital_request as release_capital_request"
  7. def _sub_select(self):
  8. return super(AccountInvoiceReport, self)._sub_select() + ", ai.release_capital_request as release_capital_request"