Skip to content

[9.0] knowledge - #75

Merged
dreispt merged 13 commits into
OCA:9.0from
naousse:9.0-knowledge
Nov 13, 2015
Merged

[9.0] knowledge#75
dreispt merged 13 commits into
OCA:9.0from
naousse:9.0-knowledge

Conversation

@naousse

@naousse naousse commented Oct 22, 2015

Copy link
Copy Markdown
Contributor

The knowledge module has been deprecated by Odoo SA in version 9.0. This pull request is a port of this module to provide:

  • a top-level menu item
  • submenus with a settings panel to configure knowledge and document applications
  • groups and access rights

@pedrobaeza

Copy link
Copy Markdown
Member

But why do you need this module? This module was only a wrapper to allow certain configuration, but per se doesn't add any model. I don't think it's needed.

@naousse

naousse commented Oct 22, 2015

Copy link
Copy Markdown
Contributor Author

OK.
The module document_page need it, and it is the module that add the menu for knowledge operation.

@naousse

naousse commented Oct 22, 2015

Copy link
Copy Markdown
Contributor Author

So, do i remove it as requirement for document_page module?

@pedrobaeza

Copy link
Copy Markdown
Member

Yes, I think it's the way to go. See if in current v9 menu layout, document_page menu entries fit in any place, or create a new root in it. To assure compatibility with another document_* modules, you can put as XML-ID for this menu "base.menu_document" or similar, and declare the same menu in all modules that need it.

@naousse

naousse commented Oct 22, 2015

Copy link
Copy Markdown
Contributor Author

OK! Thanks, i will go that way

@dreispt

dreispt commented Oct 22, 2015

Copy link
Copy Markdown
Member

@pedrobaeza But why create another module adding a new menu root when this module already does that? IMO it's not a problem to keep this, and document_pagecan depend on it for the creation of the top level menu.

@pedrobaeza

Copy link
Copy Markdown
Member

No, you don't need another module, Daniel. You only need to declare the menu on subsequent modules. This is the way to implement it: https://github.com/OCA/knowledge/pull/76/files#diff-1b36a8a2d376367ab8f27aac507585a3R5

I also ask if current v9 menu layout can host menu entries for document_page and the rest of the document_* modules without creating a parent menu.

@max3903

max3903 commented Oct 22, 2015

Copy link
Copy Markdown
Member

@pedrobaeza I tend to agree with @dreispt: we should declare the menuitem once in knowledge module instead of every submodules (document_page, document_*)

There is no menu_document in base.

@max3903 max3903 added this to the 9.0 milestone Oct 22, 2015
@max3903

max3903 commented Oct 22, 2015

Copy link
Copy Markdown
Member

@naousse Same remarks as described here: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0#todo

and add Odoo Community Association (OCA) in the author keyword

@pedrobaeza

Copy link
Copy Markdown
Member

OK, as you want. I was saying that for avoiding a dumb module. The technique I mention is used on Odoo for Sales, Purchases, and other top menus.

Comment thread knowledge/README.rst Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naousse

naousse commented Oct 29, 2015

Copy link
Copy Markdown
Contributor Author

I have made the corrections

@max3903

max3903 commented Oct 30, 2015

Copy link
Copy Markdown
Member

👍

This was referenced Oct 30, 2015
@max3903 max3903 changed the title knowledge module added from Odoo 8.0 and ported to 9.0 [9.0] knowledge Oct 30, 2015
@pedrobaeza pedrobaeza mentioned this pull request Oct 30, 2015
13 tasks
@dreispt

dreispt commented Nov 9, 2015

Copy link
Copy Markdown
Member

Other than a couple of minor notes, it's 👍

Comment thread knowledge/README.rst Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module is the base for any knowledge and document management application.

Comment thread knowledge/__init__.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naousse Please remove this line, it makes Travis failed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@max3903 are you sure of this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gurneyalex Not this one, but in __openerp__.py, it does.

@gurneyalex

Copy link
Copy Markdown
Member

I'm surprised by the WARNINGs in runbot
https://runbot.odoo-community.org/runbot/build/3119551

@gurneyalex

Copy link
Copy Markdown
Member

@max3903

max3903 commented Nov 13, 2015

Copy link
Copy Markdown
Member

👍

dreispt added a commit that referenced this pull request Nov 13, 2015
@dreispt
dreispt merged commit 68d0781 into OCA:9.0 Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants