mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Add more tests and fixes issues found by tests
This commit is contained in:
committed by
Elmeri Niemelä
parent
8c279cadcf
commit
ac39d060e4
@@ -36,7 +36,7 @@ class IrActionsReportXml(models.Model):
|
||||
@api.constrains("py3o_is_local_fusion", "py3o_server_id",
|
||||
"py3o_filetype")
|
||||
def _check_py3o_server_id(self):
|
||||
is_native = Formats().get_format(self.py3o_filetype)
|
||||
is_native = Formats().get_format(self.py3o_filetype).native
|
||||
if ((not is_native or not self.py3o_is_local_fusion) and
|
||||
not self.py3o_server_id):
|
||||
raise ValidationError(_(
|
||||
|
||||
Reference in New Issue
Block a user