mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] Override the field to add the value instead of breaking the validation system
This commit is contained in:
@@ -20,15 +20,10 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import models
|
||||
from openerp import models, fields
|
||||
|
||||
|
||||
class IrActionsReportXml(models.Model):
|
||||
_inherit = 'ir.actions.report.xml'
|
||||
|
||||
def _check_selection_field_value(self, cr, uid,
|
||||
field, value, context=None):
|
||||
if field == 'report_type' and value == 'xls':
|
||||
return
|
||||
return super(IrActionsReportXml, self)._check_selection_field_value(
|
||||
cr, uid, field, value, context=context)
|
||||
report_type = fields.Selection(selection_add=[('xls', 'XLS')])
|
||||
|
||||
Reference in New Issue
Block a user