Merge lp://staging/~dreis-pt/project-service/7.0-project_categ-dr into lp://staging/~project-core-editors/project-service/trunk

Proposed by Daniel Reis
Status: Merged
Merged at revision: 35
Proposed branch: lp://staging/~dreis-pt/project-service/7.0-project_categ-dr
Merge into: lp://staging/~project-core-editors/project-service/trunk
Diff against target: 655 lines (+454/-127)
14 files modified
crm_categ_hierarchy/__init__.py (+0/-3)
crm_categ_hierarchy/__openerp__.py (+0/-32)
crm_categ_hierarchy/crm_categ.py (+0/-53)
crm_categ_hierarchy/crm_categ_view.xml (+0/-39)
project_categ/__init__.py (+2/-0)
project_categ/__openerp__.py (+44/-0)
project_categ/i18n/project_categ.pot (+72/-0)
project_categ/project_categ_model.py (+90/-0)
project_categ/project_categ_view.xml (+55/-0)
project_categ_issue/__init__.py (+2/-0)
project_categ_issue/__openerp__.py (+40/-0)
project_categ_issue/i18n/project_categ_issue.pot (+47/-0)
project_categ_issue/project_categ_model.py (+61/-0)
project_categ_issue/project_categ_view.xml (+41/-0)
To merge this branch: bzr merge lp://staging/~dreis-pt/project-service/7.0-project_categ-dr
Reviewer Review Type Date Requested Status
Raphaël Valyi - http://www.akretion.com Approve
Sébastien BEAU - http://www.akretion.com Needs Fixing
Yannick Vaucher @ Camptocamp code review Approve
Pedro Manuel Baeza code review Approve
Review via email: mp+195384@code.staging.launchpad.net

Description of the change

Add modules to allow for Project specific Tags/Categories.

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Hi, Daniel,

Why is the module 'crm_categ_hierarchy' removed?

Regards.

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

That a good question Pedro:
In v7 Project Categories is a new model, so it's no longer based on CRM Categories.
So, keeping the "crm" indication in the module would give a wrong indication:
the corresponding v7 functionality no longer touches on CRM models.

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Don't you think then that it's better to use 'bzr mv' command instead of renaming folder outside the source control to keep changes and see a proper diff?

Regards.

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

Well, you're right, it could, but it wasn't the workflow I used:
I didn't actually port the v6 module: I wrote a new one from scratch, with a slightly different purpose in mind - "Per Project Configurable Categories" instead of just a "Category hierarchical structure".

Do you think recreating the branch that way would bring significant benefits to the code review?

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Well, it depends on the changes you have made, but seeing the piece of code, I think it can be handled, so I'll made the review directly.

Regards.

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

OK, watching the code, I don't see any big, problem, so I give a code review approval.

Regards.

review: Approve (code review)
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

LGTM

review: Approve (code review)
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Hi Daniel

I think the check recursion have been lost during the conversion

    _constraints = [
        (osv.osv._check_recursion, 'Error! Cannot create recursive cycle.', ['parent_id'])
    ]

Thanks for your contribution

Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) :
review: Needs Fixing
30. By Daniel Reis

Added parent_id recursion check; fixed PEP8

31. By Daniel Reis

Fixed typo

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

Fixed.

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Thanks for the fix Daniel, this is all clean now, I assume it's still ok with the 2 previous approval and I merge that.

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