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).
|
||||
{
|
||||
"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",
|
||||
|
@ -1,2 +1,3 @@
|
||||
* Holger Brunn <hbrunn@therp.nl>
|
||||
* 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
|
||||
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()
|
||||
|
@ -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="{"terminology": "active"}"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
<widget
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
/>
|
||||
<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
|
||||
|
Loading…
Reference in New Issue
Block a user