Skip to content

Commit

Permalink
[MIG] document_page_project: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoutreloux committed Nov 7, 2024
1 parent 300c0bf commit 9703964
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions document_page_project/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions document_page_project/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Forgeflow](https://www.forgeflow.com):
- Lois Rilo \<<lois.rilo@forgeflow.com>\>
1 change: 1 addition & 0 deletions document_page_project/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allow to link document pages to projects.
2 changes: 2 additions & 0 deletions document_page_project/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Go to to a project and click on "Wiki Pages" to see linked documents
or to create new ones.
9 changes: 5 additions & 4 deletions document_page_project/views/document_page_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@
</record>
<record id="action_document_page_projects" model="ir.actions.act_window">
<field name="name">Project Wiki</field>
<field name="path">project_wiki</field>
<field name="res_model">document.page</field>
<field
name="domain"
>[('type','=','content'), ('project_id', '=', active_id)]</field>
>[('type','=','content'), ('project_id', '=', id)]</field>
<field name="context">{
'default_type': 'content',
'default_project_id': active_id}</field>
<field name="view_mode">tree,form</field>
'default_project_id': id}</field>
<field name="view_mode">list,form</field>
<field
name="view_ids"
eval="[(5,0,0),
(0,0,{'view_mode':'tree', 'view_id': ref('document_page.view_wiki_tree')}),
(0,0,{'view_mode':'list', 'view_id': ref('document_page.view_wiki_tree')}),
(0,0,{'view_mode':'form', 'view_id': ref('document_page.view_wiki_form')})]"
/>
<field name="search_view_id" ref="document_page.view_wiki_filter" />
Expand Down

0 comments on commit 9703964

Please sign in to comment.