Compare commits
2 Commits
16.0
...
ccae13386e
| Author | SHA1 | Date | |
|---|---|---|---|
| ccae13386e | |||
| 3cce144be2 |
@@ -6,8 +6,13 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
"Project-Id-Version: Odoo Server 16.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
<<<<<<< HEAD
|
||||||
"POT-Creation-Date: 2026-02-18 16:38+0000\n"
|
"POT-Creation-Date: 2026-02-18 16:38+0000\n"
|
||||||
"PO-Revision-Date: 2026-02-18 16:38+0000\n"
|
"PO-Revision-Date: 2026-02-18 16:38+0000\n"
|
||||||
|
=======
|
||||||
|
"POT-Creation-Date: 2026-06-10 15:03+0000\n"
|
||||||
|
"PO-Revision-Date: 2026-06-10 15:03+0000\n"
|
||||||
|
>>>>>>> d0afa23 ([IMP] survey_extra_fields : handle file question on page navigation)
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
|
|||||||
@@ -115,9 +115,9 @@ class TestSurveyFileSaveLines(TestSurveyFileCommon):
|
|||||||
"""Submitting the 'cleared' sentinel after a file removes it."""
|
"""Submitting the 'cleared' sentinel after a file removes it."""
|
||||||
answer = self._add_answer(self.survey, self.survey_manager.partner_id)
|
answer = self._add_answer(self.survey, self.survey_manager.partner_id)
|
||||||
file_json = json.dumps({"data": self.file_b64, "name": self.file_name})
|
file_json = json.dumps({"data": self.file_b64, "name": self.file_name})
|
||||||
answer.save_lines(self.question_file, file_json)
|
answer._save_lines(self.question_file, file_json)
|
||||||
|
|
||||||
answer.save_lines(self.question_file, json.dumps({"cleared": True}))
|
answer._save_lines(self.question_file, json.dumps({"cleared": True}))
|
||||||
|
|
||||||
line = answer.user_input_line_ids.filtered(
|
line = answer.user_input_line_ids.filtered(
|
||||||
lambda l: l.question_id == self.question_file
|
lambda l: l.question_id == self.question_file
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 16.0\n"
|
"Project-Id-Version: Odoo Server 18.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2026-04-09 07:55+0000\n"
|
"POT-Creation-Date: 2026-04-09 07:55+0000\n"
|
||||||
"PO-Revision-Date: 2026-04-09 07:55+0000\n"
|
"PO-Revision-Date: 2026-04-09 07:55+0000\n"
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ from datetime import date
|
|||||||
from psycopg2 import IntegrityError
|
from psycopg2 import IntegrityError
|
||||||
|
|
||||||
from odoo.addons.survey.tests.common import SurveyCase
|
from odoo.addons.survey.tests.common import SurveyCase
|
||||||
from odoo.tools import mute_logger
|
|
||||||
|
|
||||||
|
|
||||||
class TestSurveyRecordCreation(SurveyCase):
|
class TestSurveyRecordCreation(SurveyCase):
|
||||||
@@ -893,8 +892,7 @@ class TestSurveyRecordCreation(SurveyCase):
|
|||||||
with self.assertRaises(IntegrityError):
|
with self.assertRaises(IntegrityError):
|
||||||
# TODO : propose a better user experience than IntegrityError when
|
# TODO : propose a better user experience than IntegrityError when
|
||||||
# a mandatory field is missing
|
# a mandatory field is missing
|
||||||
with mute_logger("odoo.sql_db"):
|
self.answer._mark_done()
|
||||||
self.answer._mark_done()
|
|
||||||
|
|
||||||
def test_ignore_if_mandatory_field_is_missing(self):
|
def test_ignore_if_mandatory_field_is_missing(self):
|
||||||
# In this test, we check the behavior of ignore_if_mandatory_field_is_missing
|
# In this test, we check the behavior of ignore_if_mandatory_field_is_missing
|
||||||
@@ -907,8 +905,7 @@ class TestSurveyRecordCreation(SurveyCase):
|
|||||||
survey=self.survey, partner=False, email="jean@test.fr"
|
survey=self.survey, partner=False, email="jean@test.fr"
|
||||||
)
|
)
|
||||||
|
|
||||||
with mute_logger("odoo.sql_db"):
|
self.answer._mark_done()
|
||||||
self.answer._mark_done()
|
|
||||||
|
|
||||||
# No partner has been created, and no IntegrityError has been raised
|
# No partner has been created, and no IntegrityError has been raised
|
||||||
partner = self.env["res.partner"].search([("name", "=", "Jean")])
|
partner = self.env["res.partner"].search([("name", "=", "Jean")])
|
||||||
|
|||||||
Reference in New Issue
Block a user