mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-15 19:52:56 -06:00
[16.0][MIG] document_page_tag: Migration to 16.0
This commit is contained in:
parent
d851e5e0cc
commit
e0e92dae5a
@ -2,7 +2,7 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
{
|
{
|
||||||
"name": "Document Page Tag",
|
"name": "Document Page Tag",
|
||||||
"version": "15.0.1.2.0",
|
"version": "16.0.1.0.0",
|
||||||
"author": "Therp BV,Odoo Community Association (OCA)",
|
"author": "Therp BV,Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/knowledge",
|
"website": "https://github.com/OCA/knowledge",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
|
@ -21,4 +21,4 @@ class DocumentPageTag(models.Model):
|
|||||||
existing = self.search([("name", "=ilike", vals["name"])], limit=1)
|
existing = self.search([("name", "=ilike", vals["name"])], limit=1)
|
||||||
if existing:
|
if existing:
|
||||||
return existing
|
return existing
|
||||||
return super(DocumentPageTag, self).create(vals)
|
return super().create(vals)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||||
document_page_user,document.page user,model_document_page_tag,knowledge.group_document_user,1,0,0,0
|
document_page_user,document.page user,model_document_page_tag,document_knowledge.group_document_user,1,0,0,0
|
||||||
document_page_editor,document.page editor,model_document_page_tag,document_page.group_document_editor,1,1,1,0
|
document_page_editor,document.page editor,model_document_page_tag,document_page.group_document_editor,1,1,1,0
|
||||||
document_page_manager,document.page manager,model_document_page_tag,document_page.group_document_manager,1,1,1,1
|
document_page_manager,document.page manager,model_document_page_tag,document_page.group_document_manager,1,1,1,1
|
||||||
|
|
@ -19,4 +19,4 @@ class TestDocumentPageTag(TransactionCase):
|
|||||||
with mute_logger("odoo.sql_db"):
|
with mute_logger("odoo.sql_db"):
|
||||||
testtag2 = self.env["document.page.tag"].create({"name": "test2"})
|
testtag2 = self.env["document.page.tag"].create({"name": "test2"})
|
||||||
testtag2.write({"name": "test"})
|
testtag2.write({"name": "test"})
|
||||||
testtag2.flush()
|
testtag2.flush_model()
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<record id="view_document_page_tag_search" model="ir.ui.view">
|
<record id="view_document_page_tag_search" model="ir.ui.view">
|
||||||
@ -66,7 +67,7 @@
|
|||||||
<menuitem
|
<menuitem
|
||||||
id="document_page_tag_menu"
|
id="document_page_tag_menu"
|
||||||
name="Tags"
|
name="Tags"
|
||||||
parent="knowledge.menu_document_configuration"
|
parent="document_knowledge.menu_document_configuration"
|
||||||
action="document_page_tag_action"
|
action="document_page_tag_action"
|
||||||
sequence="45"
|
sequence="45"
|
||||||
/>
|
/>
|
||||||
|
1
setup/document_page_tag/odoo/addons/document_page_tag
Symbolic link
1
setup/document_page_tag/odoo/addons/document_page_tag
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../../document_page_tag
|
6
setup/document_page_tag/setup.py
Normal file
6
setup/document_page_tag/setup.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user