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.

12 lines
558 B

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