Merge lp://staging/~dreis-pt/department-mgmt/analytic-v7 into lp://staging/~department-core-editors/department-mgmt/7.0

Proposed by Daniel Reis
Status: Merged
Merged at revision: 10
Proposed branch: lp://staging/~dreis-pt/department-mgmt/analytic-v7
Merge into: lp://staging/~department-core-editors/department-mgmt/7.0
Diff against target: 314 lines (+61/-174)
5 files modified
analytic_department/LICENSE (+18/-0)
analytic_department/__init__.py (+0/-31)
analytic_department/__openerp__.py (+10/-50)
analytic_department/analytic.py (+7/-49)
analytic_department/analytic_view.xml (+26/-44)
To merge this branch: bzr merge lp://staging/~dreis-pt/department-mgmt/analytic-v7
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp Approve
Alexandre Fayolle - camptocamp code review, no test Approve
Niels Huylebroeck (community) no test Approve
Review via email: mp+150798@code.staging.launchpad.net

Description of the change

Migrated analytic_department to v7.
I chose to remove the features depending on the deprecated user department.

To post a comment you must log in.
Revision history for this message
Niels Huylebroeck (red15) wrote :

Very good styling, this could serve as an example for us all!

I'd like to point out you are adding +x attributes (executable) on each file? Are you perhaps using bzr under windows? Is there any way you can avoid passing this in the commit ?

Also feel free I'd say to add yourself to the authors by converting it to a list of strings:
"author": ["Camptocamp", "Daniel Reis"],

Perhaps even the copyright section can be expanded to include your name and the current year.

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

Thank you - I'm just applying what I learned in other MP reviews.

I'm fixing the +x attributes, and I'll be adding my name to the authors list as you kindly suggested.
I tried with the list, but it just gets converted to a string, so it's best not to the list.

As for the license text, IMHO it's rather pointless to repeat it in every .py file, including empty __init__.py files. And the license is ment to apply to all files, not only python code. I have seen that newer modules include a LICENSE text file for this, and I think that a DRYer single license file makes more sense.

I'll be resubmitting the changes soon.

11. By Daniel Reis

[FIX] file 'x' attributes; license now stated in a single place.

Revision history for this message
Daniel Reis (dreis-pt) wrote :

Just pushed the changes into the MP.

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

Nit picking : I believe Joël's last name is correctly spelled 'Grand-Guillaume" (with two capital "G"s).

Apart from that LGTM.

review: Approve (code review, no test)
12. By Daniel Reis

[FIX] License and author

Revision history for this message
Daniel Reis (dreis-pt) wrote :

Don't want to mess with Joël - fixed.

Revision history for this message
Niels Huylebroeck (red15) wrote :

For that author field, I know inside OpenERP it's listed as simple repr() output but I think it's correctly parsed and assigned on the openerp apps (and it's future proof too). It still is a better way imho to indicate who worked on it instead of concatenating all the author names together inside and unbreakable string.

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Oh, I saw that you proposed the module 2 times, here and in this branch: https://code.launchpad.net/~dreis-pt/department-mgmt/project-v7b/+merge/151006

I guess that this merge proposal is a pre-requisite for the other one, next time, in such case can you resubmit the 'project-v7b/+merge/151006' putting this branch as 'pre-requisite' please? Thus, the changes of this branch won't be displayed on the other one. Thanks

review: Needs Information
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Same remark than the other merge proposal, the <field name="type">...</field> is now useless in v7, they can be removed.

13. By Daniel Reis

[FIX] removing useless <field name=type>; fixing DOS linebreaks and +x file attributes.

Revision history for this message
Daniel Reis (dreis-pt) wrote :

Fixed!

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Thanks! LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches