Skip to content
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

[FIX] Upgrade mgmtsystem_claim to v9.0 #141

Merged
merged 16 commits into from
Jan 19, 2017
Merged

[FIX] Upgrade mgmtsystem_claim to v9.0 #141

merged 16 commits into from
Jan 19, 2017

Conversation

Jeroen7V
Copy link

  • updated version number
  • removed dependency to document_page
    • according to changelog in mgmtsystem no longer needed
  • copied the board view from v8.0
  • removed (commented) sequence type
    • no longer needed in odoo v9
  • section_id became team_id in odoo v9
  • email.template became mail.template in odoo v9

@oca-clabot
Copy link

Hey @Jeroen7V, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@max3903
Copy link
Sponsor Member

max3903 commented Jun 23, 2016

CLA fixed.

@@ -42,7 +43,6 @@ addon | version | summary
[mgmtsystem_action_audittrail](mgmtsystem_action_audittrail/) | 1.0 (unported) | Management System - Actions Audit Trail tracking
[mgmtsystem_audit](mgmtsystem_audit/) | 8.0.1.2.0 (unported) | Management System - Audit
[mgmtsystem_audit_audittrail](mgmtsystem_audit_audittrail/) | 1.0 (unported) | Management System - Audits Audit Trail tracking
[mgmtsystem_claim](mgmtsystem_claim/) | 8.0.1.1.0 (unported) | Management System - Claim
[mgmtsystem_claim_audittrail](mgmtsystem_claim_audittrail/) | 1.0 (unported) | Management System - Claims Audit Trail tracking
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

@Jeroen7V No need to touch this. It is updated automatically.

@max3903
Copy link
Sponsor Member

max3903 commented Jun 23, 2016

@Jeroen7V Try to have modifications to one module only per pull request. It is easier to review.

@dreispt dreispt changed the title [FIX] Upgrade to odoo v9.0 [FIX] Upgrade mgmtstsem_claim to v9.0 Jun 23, 2016
@dreispt dreispt changed the title [FIX] Upgrade mgmtstsem_claim to v9.0 [FIX] Upgrade mgmtsystem_claim to v9.0 Jun 23, 2016
vals.update({
'reference': self.env['ir.sequence'].get('mgmtsystem.claim')
})
if vals:
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

I don't think this if is needed.

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 23, 2016

Mr.Travis also has a few comments for you:

************* Module mgmtsystem
mgmtsystem/__init__.py:1: [W7908(missing-newline-extrafiles), ] security/ir.model.access.csv Missing newline
************* Module mgmtsystem_claim
mgmtsystem_claim/__init__.py:1: [C7902(missing-readme), ] Missing ./README.rst file. Template here: https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst
************* Module mgmtsystem_claim.__openerp__
mgmtsystem_claim/__openerp__.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
mgmtsystem_claim/__openerp__.py:21: [C8103(manifest-deprecated-key), ] Deprecated key "description" in manifest file
************* Module mgmtsystem_claim.models.mgmtsystem_claim
mgmtsystem_claim/models/mgmtsystem_claim.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
mgmtsystem_claim/models/mgmtsystem_claim.py:24: [C8104(class-camelcase), mgmtsystem_claim] Use `CamelCase` "MgmtsystemClaim" in class name "mgmtsystem_claim". You can use oca-autopep8 of https://github.com/OCA/maintainer-tools to auto fix it.
************* Module mgmtsystem_claim.tests.test_create_claim
mgmtsystem_claim/tests/test_create_claim.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`

@max3903 max3903 added this to the 9.0 milestone Jun 24, 2016
@pedrobaeza pedrobaeza mentioned this pull request Jun 24, 2016
30 tasks
@max3903
Copy link
Sponsor Member

max3903 commented Jun 24, 2016

@Jeroen7V The form view displays the company field. Can you fix it (should be groups=..., plural):
https://github.com/aitvml/management-system/blob/aedc0267ad222b76c0e14cbfadeedd4af538dd7e/mgmtsystem_claim/views/mgmtsystem_claim.xml#L41

@max3903
Copy link
Sponsor Member

max3903 commented Jun 24, 2016

@dreispt The email notification on the claim creation is added to the chatter. Please confirm this is expected.

screenshot from 2016-06-24 15-28-57

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 29, 2016

@max3903 Yes, the message_post methods work writing to the chatter, using a "subtype" that triggers an email. personally I find that useful, since we can track the notifications issues by the system.

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 29, 2016

@max3903 A more streamlined alternative is to use the Odoo "tracking" features, like in project Issues/Tasks. But we can leave that to another PR.

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 29, 2016

@Jeroen7V let us know when the the work on out comments is done.

@max3903
Copy link
Sponsor Member

max3903 commented Jul 5, 2016

ping @Jeroen7V @aitvml

@dreispt
Copy link
Sponsor Member

dreispt commented Jul 16, 2016

@Jeroen7V The module fails to install with External ID not found in the system: mgmtsystem_claim.action_report_mgmtsystem_claim" while parsing /home/travis/build/OCA/management-system/mgmtsystem_claim/views/menus.xml:8

See https://travis-ci.org/OCA/management-system/jobs/144723455#L841

@max3903
Copy link
Sponsor Member

max3903 commented Jul 20, 2016

@Jeroen7V Few comments:

mgmtsystem_claim m
group by m.user_id, m.stage_id, m.date, \
m.create_date,m.date_deadline, \
m.date_closed, m.id
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

This group by operation is redundant, since it groups by id.
IMO skip completely the report model, and instead just add a Pivot view to the mgmtsystem.claim model.

@max3903
Copy link
Sponsor Member

max3903 commented Aug 1, 2016

ping @Jeroen7V

@dreispt
Copy link
Sponsor Member

dreispt commented Aug 3, 2016

I believe this is the last PR to finish the migration, correct?

@max3903
Copy link
Sponsor Member

max3903 commented Aug 3, 2016

@dreispt: @lukvml also wanted @naousse to migrate mgmtsystem_kpi and @Jeroen7V to migrate mgmtsystem_nonconformity_claim and mgmtsystem_environment.

See #92

@dreispt
Copy link
Sponsor Member

dreispt commented Aug 4, 2016

I see. PRs are missing, then.

@Jeroen7V
Copy link
Author

@max3903 I've reverted my changes and the attribute name is changed. What did you mean by "There is no button and only one step in the workflow."?

@max3903
Copy link
Sponsor Member

max3903 commented Aug 29, 2016

@Jeroen7V There is 2 states in the workflow and no button to click to move from one state to the other.

@Jeroen7V
Copy link
Author

@max3903 Could this be a rights issue? When I check the box 'Common to All Teams' under configuration -> claims -> stages, I am able to choose that stage when creating/editing a claim.

@max3903
Copy link
Sponsor Member

max3903 commented Sep 26, 2016

@Jeroen7V Claims belongs to a Sales Team (Direct Sales). You need to add this team to the stages (draft, pending, open, closed and cancel) so users can click on the statusbar.

Copy link
Sponsor Member

@max3903 max3903 left a comment

Choose a reason for hiding this comment

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

  • Allow claims to move in the workflow (add the stages to the sales team)

@Jeroen7V
Copy link
Author

@max3903:
Is this the correct way to add the stages to the default stage team? And are there any other changes needed for this module?

@Jeroen7V Jeroen7V closed this Jan 17, 2017
@Jeroen7V Jeroen7V reopened this Jan 17, 2017
@max3903
Copy link
Sponsor Member

max3903 commented Jan 17, 2017

@Jeroen7V Let me check and I will get back to you. Hopefully today or later this week. Thanks!

@max3903 max3903 requested a review from dreispt January 17, 2017 15:01
Copy link
Sponsor Member

@dreispt dreispt left a comment

Choose a reason for hiding this comment

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

I don't see any issues with the code: LGTM

@max3903 max3903 merged commit 2c84235 into OCA:9.0 Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants