[12.0][BR001549][MIG] project_project_category: Migration to 12.0#237
Open
Reinhard-sheng wants to merge 8 commits intoElico-Corp:12.0from
Open
[12.0][BR001549][MIG] project_project_category: Migration to 12.0#237Reinhard-sheng wants to merge 8 commits intoElico-Corp:12.0from
Reinhard-sheng wants to merge 8 commits intoElico-Corp:12.0from
Conversation
elicoidal
requested changes
Mar 25, 2019
project_project_category/README.rst
Outdated
| @@ -0,0 +1,60 @@ | |||
| .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | |||
project_project_category/README.rst
Outdated
| @@ -0,0 +1,60 @@ | |||
| .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | |||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | |||
| :alt: License: AGPL-3 | |||
project_project_category/README.rst
Outdated
|
|
||
| This module extends the functionality of Project to add a category on the project itself, also support search filter and group by. | ||
|
|
||
| Installation |
project_project_category/README.rst
Outdated
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/Elico-Corp/elico_odoo/issues>`_. |
| 'website': 'https://www.elico-corp.com', | ||
| 'support': 'support@elico-corp.com', | ||
| "author": "Elico corp", | ||
| "license": "AGPL-3", |
project_project_category/data/project_project_category_data.xml
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,23 @@ | |||
| # -*- coding: utf-8 -*- | |||
| </record> | ||
|
|
||
| </data> | ||
| </odoo> No newline at end of file |
| @@ -0,0 +1,5 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # © 2016-2017 Elico Corp (https://www.elico-corp.com) | |||
| <field name="project_categ_id"/> | ||
| </field> | ||
| <group expand="0" string="Group By"> | ||
| <filter name ="project_category" string="Project category" domain="[]" context="{'group_by': 'project_categ_id'}"/> |
Author
|
Updated |
elicoidal
reviewed
Mar 25, 2019
|
|
||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <odoo> | ||
| <data noupdate="1"> |
Contributor
There was a problem hiding this comment.
remove data key and merge with odoo
| @@ -0,0 +1,25 @@ | |||
| <!-- -*- coding: utf-8 -*- --> | |||
Author
|
Updated again. |
elicoidal
approved these changes
Mar 25, 2019
Contributor
elicoidal
left a comment
There was a problem hiding this comment.
LGTM. waiting for Travis
Contributor
|
Please check travis |
| class ProjectProjectCategory(models.Model): | ||
| _name = 'project.project.category' | ||
|
|
||
| name = fields.Char('Name', required=True, translate=True, select=True) |
There was a problem hiding this comment.
Suggested change
| name = fields.Char('Name', required=True, translate=True, select=True) | |
| name = fields.Char('Name', required=True, translate=True, index=True) |
select is deprecated.
| @@ -0,0 +1,4 @@ | |||
| # © 2016-2019 Elico Corp (https://www.elico-corp.com) | |||
There was a problem hiding this comment.
License not needed in __init__.py
project_project_category/__init__.py
Outdated
| @@ -0,0 +1,4 @@ | |||
| # © 2016-2019 Elico Corp (https://www.elico-corp.com) | |||
| # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | |||
| # © 2016-2019 Elico Corp (https://www.elico-corp.com) | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
| from openerp import fields, models |
There was a problem hiding this comment.
Suggested change
| from openerp import fields, models | |
| from odoo import fields, models |
elicoidal
approved these changes
Mar 27, 2019
| class ProjectProjectCategory(models.Model): | ||
| _name = 'project.project.category' | ||
|
|
||
| name = fields.Char('Name', required=True, translate=True, index=True) |
Contributor
|
Travis is failing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Elico-Corp/odoo-reviewers