Merge lp:~savoirfairelinux-openerp/openerp-mgmtsystem/nc_dep into lp:openerp-mgmtsystem

Status: Merged
Merged at revision: 82
Proposed branch: lp:~savoirfairelinux-openerp/openerp-mgmtsystem/nc_dep
Merge into: lp:openerp-mgmtsystem
Diff against target: 12 lines (+1/-1)
1 file modified
mgmtsystem_nonconformity/mgmtsystem_nonconformity.py (+1/-1)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-mgmtsystem/nc_dep
Reviewer Review Type Date Requested Status
Daniel Reis lgtm (no test) Approve
Maxime Chambreuil (http://www.savoirfairelinux.com) code review Approve
Review via email: mp+186641@code.launchpad.net

Description of the change

Reverts the nonconformities inheriting crm.claims unnecessarily from the nc-chatter-v7 merge.

To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) :
review: Approve (code review)
Revision history for this message
Daniel Reis (dreis-pt) wrote :

In principle I agree with removing the dependency, but did you confirm the impact in the workflow?
It's because crm.claim provided a lot of logic for state changes, and it's possible that some behaviours rely on that dependency.

PS:
An idea to explore in a later MP is to add stages to the NCs and create a Kanban view. ideally it should work in a way very similar to Project Tasks or Issues.

review: Needs Information
Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

I don't see any problems with the state changes.
The addition of crm.claim was a mistake on my part, I wasn't using its functionality.
crm.claim requires a field called name which is not currently provided. See https://bugs.launchpad.net/openerp-mgmtsystem/+bug/1233159

Revision history for this message
Daniel Reis (dreis-pt) :
review: Approve (lgtm (no test))

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mgmtsystem_nonconformity/mgmtsystem_nonconformity.py'
2--- mgmtsystem_nonconformity/mgmtsystem_nonconformity.py 2013-09-17 21:57:29 +0000
3+++ mgmtsystem_nonconformity/mgmtsystem_nonconformity.py 2013-09-19 20:03:24 +0000
4@@ -139,7 +139,7 @@
5 _name = "mgmtsystem.nonconformity"
6 _description = "Nonconformity of the management system"
7 _rec_name = "description"
8- _inherit = ['crm.claim']
9+ _inherit = ['mail.thread']
10 _order = "date desc"
11
12 def _state_name(self, cr, uid, ids, name, args, context=None):