OCA reporting engine fork for dev and update.
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.

14 lines
433 B

  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. from odoo import models
  3. class IrModelFields(models.Model):
  4. _inherit = 'ir.model.fields'
  5. def _add_manual_fields(self, model):
  6. super()._add_manual_fields(model)
  7. if 'bi.sql.view' in self.env:
  8. Sql = self.env['bi.sql.view']
  9. if hasattr(Sql, 'check_manual_fields'):
  10. Sql.check_manual_fields(model)