mirror of
https://gitlab.com/flectra-community/reporting-engine.git
synced 2024-12-23 21:01:49 +00:00
15 lines
458 B
Python
15 lines
458 B
Python
|
# Part of Flectra. See LICENSE file for full copyright and licensing details.
|
||
|
|
||
|
from flectra import models
|
||
|
|
||
|
|
||
|
class IrModelFields(models.Model):
|
||
|
_inherit = 'ir.model.fields'
|
||
|
|
||
|
def _add_manual_fields(self, model):
|
||
|
super(IrModelFields, self)._add_manual_fields(model)
|
||
|
if 'bi.sql.view' in self.env:
|
||
|
Sql = self.env['bi.sql.view']
|
||
|
if hasattr(Sql, 'check_manual_fields'):
|
||
|
Sql.check_manual_fields(model)
|