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 14, 2024
1 parent 2f0408b commit a91e29b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 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 \<<[email protected]>\>
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: 4 additions & 5 deletions document_page_project/views/document_page_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
</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>
<field name="domain">[('type','=','content'), ('project_id', '=', active_id)]</field>
<field name="context">{
'default_type': 'content',
'default_project_id': active_id}</field>
<field name="view_mode">tree,form</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 a91e29b

Please sign in to comment.