Add more tests and fixes issues found by tests

This commit is contained in:
Laurent Mignon
2016-10-06 10:46:28 +02:00
committed by Elmeri Niemelä
parent 8c279cadcf
commit ac39d060e4
2 changed files with 86 additions and 3 deletions

View File

@@ -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(_(