[MIG]document_page_tag: Migration to 13.0

This commit is contained in:
manu 2022-03-07 13:45:59 +01:00
parent 10c594af4b
commit df46d1bc64
4 changed files with 14 additions and 18 deletions

View File

@ -2,14 +2,14 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Document Page Tag",
"version": "12.0.1.0.0",
"version": "13.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/knowledge",
"license": "AGPL-3",
"category": "Knowledge Management",
"summary": "Allows you to assign tags or keywords to pages and search for "
"them afterwards",
"depends": ["document_page",],
"depends": ["document_page"],
"data": [
"views/document_page_tag.xml",
"views/document_page.xml",

View File

@ -1,2 +1,3 @@
* Holger Brunn <hbrunn@therp.nl>
* Marcel Savegnago <marcel.savegnago@gmail.com>
* Manuel Regidor <manuel.regidor@sygel.es>

View File

@ -16,5 +16,6 @@ class TestDocumentPageTag(TransactionCase):
# check we can't create nonunique tags
with self.assertRaises(IntegrityError):
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.flush()

View File

@ -22,20 +22,15 @@
<field name="arch" type="xml">
<form string="Tag">
<sheet>
<div class="oe_button_box" name="button_box">
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-check"
>
<field
name="active"
widget="boolean_button"
options="{&quot;terminology&quot;: &quot;active&quot;}"
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
</button>
</div>
<group>
<field name="active" invisible="1" />
</group>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
@ -65,7 +60,6 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">document.page.tag</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
</record>
<menuitem