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.

19 lines
563 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 (
  7. super(AccountInvoiceReport, self)._select()
  8. + ", sub.release_capital_request as release_capital_request"
  9. )
  10. def _sub_select(self):
  11. return (
  12. super(AccountInvoiceReport, self)._sub_select()
  13. + ", ai.release_capital_request as release_capital_request"
  14. )