[FIX] runbot: browse a valid record id in test_warning

Since odoo/odoo@824a651 the test_warning_from_runbot_abstract was
failing for a good reason, the `browse` parameter was a recordset
instead of an id.
This commit is contained in:
Christophe Monniez 2021-02-02 10:20:06 +01:00 committed by xdo
parent 21077c690a
commit 4f4005896c

View File

@ -9,6 +9,6 @@ _logger = logging.getLogger(__name__)
class TestRunbot(RunbotCase):
def test_warning_from_runbot_abstract(self):
warning_id = self.env['runbot.runbot'].warning('Test warning message')
warning = self.env['runbot.runbot'].warning('Test warning message')
self.assertTrue(self.env['runbot.warning'].browse(warning_id).exists())
self.assertTrue(self.env['runbot.warning'].browse(warning.id).exists())