-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIG mgmtsystem_system to V. 10.0 #166
MIG mgmtsystem_system to V. 10.0 #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some functional changes I'm not sure about.
mgmtsystem/__manifest__.py
Outdated
"author": "Savoir-faire Linux,Odoo Community Association (OCA)", | ||
"website": "http://www.savoirfairelinux.com", | ||
"license": "AGPL-3", | ||
"category": "Management System", | ||
'images': ['images/mgmtsystem.png', 'images/mgmtsystem-hover.png'], | ||
"complexity": "normal", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
complexity key is deprecated, please remove
@@ -18,22 +18,22 @@ | |||
<field name="name">User</field> | |||
<field name="comment">Module user, with general read and write.</field> | |||
<field name="category_id" ref="module_category_management_system"/> | |||
<field name="implied_ids" eval="[(4,ref('mgmtsystem.group_mgmtsystem_viewer'))]"/> | |||
<field name="implied_ids" eval="(4,ref('mgmtsystem.group_mgmtsystem_viewer'))"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per documentation, the square brackets are required.
mgmtsystem/views/menus.xml
Outdated
/> | ||
|
||
<menuitem | ||
id="menu_mgmtsystem_main" | ||
name="Management System" | ||
parent="menu_mgmtsystem_root" | ||
sequence="0" | ||
groups="group_mgmtsystem_viewer"/> | ||
groups="base.group_user"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change? It unnecessarily forces access to everyone.
@dreispt Can we merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things, otherwise looks quite good imo.
mgmtsystem/views/menus.xml
Outdated
@@ -34,4 +34,4 @@ | |||
parent="mgmtsystem.menu_mgmtsystem_root" | |||
groups="group_mgmtsystem_manager" | |||
sequence="100"/> | |||
</odoo> | |||
</odoo> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing EOL
@@ -1,12 +1,15 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<odoo> | |||
<record model="ir.ui.view" id="system_form"> | |||
<data> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add data ?
from odoo import models, fields | ||
|
||
import logging | ||
_logger = logging.getLogger(__name__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this ?
@@ -35,8 +39,10 @@ | |||
<menuitem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not move it to views/menus.xml ?
35ad5a2
to
a4033ba
Compare
I did a rebase on 10.0 to compress commit history... sorry for that... could you review once more? |
417475c
to
472fc35
Compare
runbot, travis, and cc passed, this can be merged |
@@ -39,5 +23,5 @@ | |||
'views/res_config.xml' | |||
], | |||
"demo": [], | |||
'installable': False, | |||
'installable': True, | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, In the changelog it's written "the module does no depends anymore on document_page module", however in the manifest the dependency on document_page is present. Which one is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eugen-don @max3903 @dreispt related, I notice there is a dependency on board
that generates warnings during installation, and does not seem to be used inside this mgtsystem
module.
The warnings/errors I get are
WARNING test-mgtsystem-v10c odoo.modules.registry: Models have no table: board.board.
INFO test-mgtsystem-v10c odoo.modules.registry: Recreate table of model board.board.
ERROR test-mgtsystem-v10c odoo.modules.registry: Model board.board has no table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sbidoul
thanks nice spot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbidoul
i just checked the 9.0 openerp.py
and it had still board and document_page in the dependencies even though readme tells its not depending on document_page anymore.
I testet the base module and the other that ive ported, they all install without board, but some have document_page as a dependency.
So its save to remove board and document_page from dependencies in the core module.
edit:
it seems @naousse removed the dependency in his port to v 9.0 and added it back in this commit later on: dc051b6#diff-6061d36dd5e773bfa61a36521d74ca81
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document_page should be a dependency of mgmtsystem_manual, _procedure and _work_instruction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@max3903
at this moment mgmtsystem_manual and document_page_work_instruction depend both on document_page_approval and document_page_procedure depends on document_page_work_instruction.
document_page_approval depends on document_page
MIG mgmtsystem_system to V. 10.0
4a26700
to
c7da484
Compare
MIG mgmtsystem_system to V. 10.0