mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 12:12:57 -06:00
[MIG]document_page_tag: Migration to 13.0
This commit is contained in:
parent
10c594af4b
commit
df46d1bc64
@ -2,14 +2,14 @@
|
|||||||
# 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": "12.0.1.0.0",
|
"version": "13.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",
|
||||||
"category": "Knowledge Management",
|
"category": "Knowledge Management",
|
||||||
"summary": "Allows you to assign tags or keywords to pages and search for "
|
"summary": "Allows you to assign tags or keywords to pages and search for "
|
||||||
"them afterwards",
|
"them afterwards",
|
||||||
"depends": ["document_page",],
|
"depends": ["document_page"],
|
||||||
"data": [
|
"data": [
|
||||||
"views/document_page_tag.xml",
|
"views/document_page_tag.xml",
|
||||||
"views/document_page.xml",
|
"views/document_page.xml",
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
* Holger Brunn <hbrunn@therp.nl>
|
* Holger Brunn <hbrunn@therp.nl>
|
||||||
* Marcel Savegnago <marcel.savegnago@gmail.com>
|
* Marcel Savegnago <marcel.savegnago@gmail.com>
|
||||||
|
* Manuel Regidor <manuel.regidor@sygel.es>
|
||||||
|
@ -16,5 +16,6 @@ class TestDocumentPageTag(TransactionCase):
|
|||||||
# check we can't create nonunique tags
|
# check we can't create nonunique tags
|
||||||
with self.assertRaises(IntegrityError):
|
with self.assertRaises(IntegrityError):
|
||||||
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()
|
||||||
|
@ -22,20 +22,15 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Tag">
|
<form string="Tag">
|
||||||
<sheet>
|
<sheet>
|
||||||
<div class="oe_button_box" name="button_box">
|
<widget
|
||||||
<button
|
name="web_ribbon"
|
||||||
name="toggle_active"
|
title="Archived"
|
||||||
type="object"
|
bg_color="bg-danger"
|
||||||
class="oe_stat_button"
|
attrs="{'invisible': [('active', '=', True)]}"
|
||||||
icon="fa-check"
|
/>
|
||||||
>
|
<group>
|
||||||
<field
|
<field name="active" invisible="1" />
|
||||||
name="active"
|
</group>
|
||||||
widget="boolean_button"
|
|
||||||
options="{"terminology": "active"}"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="oe_title">
|
<div class="oe_title">
|
||||||
<label for="name" class="oe_edit_only" />
|
<label for="name" class="oe_edit_only" />
|
||||||
<h1>
|
<h1>
|
||||||
@ -65,7 +60,6 @@
|
|||||||
<field name="type">ir.actions.act_window</field>
|
<field name="type">ir.actions.act_window</field>
|
||||||
<field name="res_model">document.page.tag</field>
|
<field name="res_model">document.page.tag</field>
|
||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
<field name="view_type">form</field>
|
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<menuitem
|
<menuitem
|
||||||
|
Loading…
Reference in New Issue
Block a user