mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-18 11:22:18 -06:00
[MIG] document_page: Migration to 14.0
This commit is contained in:
committed by
Justine Doutreloux
parent
2eeab62555
commit
3fd611939f
@@ -23,12 +23,13 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<act_window
|
||||
id="action_related_page_create_menu"
|
||||
name="Create Menu"
|
||||
res_model="document.page.create.menu"
|
||||
target="new"
|
||||
view_mode="form"
|
||||
binding_model="document.page"
|
||||
/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_related_page_create_menu">
|
||||
<field name="name">Create Menu</field>
|
||||
<field name="res_model">document.page.create.menu</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field name="binding_model_id" ref="document_page.model_document_page" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -12,7 +12,7 @@ class DocumentPageShowDiff(models.TransientModel):
|
||||
_description = "Document Page Show Diff"
|
||||
|
||||
def _get_diff(self):
|
||||
"""Return the Difference between two document."""
|
||||
"""Return the Difference between two documents"""
|
||||
history = self.env["document.page.history"]
|
||||
ids = self.env.context.get("active_ids", [])
|
||||
diff = False
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<field name="name">Show Difference</field>
|
||||
<field name="model">wizard.document.page.history.show_diff</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Difference" version="7.0">
|
||||
<form string="Difference">
|
||||
<field name="diff" widget="html" class="overflow-x: scroll" />
|
||||
<footer>
|
||||
<button string="Close" class="oe_link" special="cancel" />
|
||||
@@ -13,13 +13,16 @@
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Create Index Action Window -->
|
||||
<act_window
|
||||
id="action_view_wiki_show_diff_values"
|
||||
name="Difference"
|
||||
res_model="wizard.document.page.history.show_diff"
|
||||
binding_model="document.page.history"
|
||||
view_mode="form"
|
||||
target="new"
|
||||
/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_view_wiki_show_diff_values">
|
||||
<field name="name">Difference</field>
|
||||
<field name="res_model">wizard.document.page.history.show_diff</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field
|
||||
name="binding_model_id"
|
||||
ref="document_page.model_document_page_history"
|
||||
/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user