mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 11:52:18 -06:00
[MIG] document_url: Migration to 15.0
This commit is contained in:
committed by
FernandoRomera
parent
0cb4d31789
commit
9b0b25a4c9
@@ -7,14 +7,12 @@ class TestDocumentUrl(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
wizard_add_url = self.env["ir.attachment.add_url"]
|
||||
ctx = {
|
||||
"active_model": "res.users",
|
||||
"active_id": self.env.ref("base.user_demo").id,
|
||||
"active_ids": [self.env.ref("base.user_demo").id],
|
||||
}
|
||||
self.wizard_add_url = wizard_add_url.with_context(ctx).create(
|
||||
{"name": "Demo User (Website)", "url": "http://www.odoodemouser.com"}
|
||||
)
|
||||
|
||||
self.wizard_add_url = wizard_add_url.with_context(
|
||||
active_model="res.users",
|
||||
active_id=self.env.ref("base.user_demo").id,
|
||||
active_ids=[self.env.ref("base.user_demo").id],
|
||||
).create({"name": "Demo User (Website)", "url": "http://www.odoodemouser.com"})
|
||||
|
||||
def test_add_url_attachment(self):
|
||||
self.wizard_add_url.action_add_url()
|
||||
|
||||
Reference in New Issue
Block a user