-
Notifications
You must be signed in to change notification settings - Fork 76
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
[12.0][BR001549][MIG] project_project_category: Migration to 12.0 #237
base: 12.0
Are you sure you want to change the base?
[12.0][BR001549][MIG] project_project_category: Migration to 12.0 #237
Conversation
project_project_category/README.rst
Outdated
@@ -0,0 +1,60 @@ | |||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
png
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switch to LGPL too
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this section
project_project_category/README.rst
Outdated
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/Elico-Corp/elico_odoo/issues>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
odoo-addons
'website': 'https://www.elico-corp.com', | ||
'support': '[email protected]', | ||
"author": "Elico corp", | ||
"license": "AGPL-3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGPL
project_project_category/data/project_project_category_data.xml
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,23 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no coding in v12
</record> | ||
|
||
</data> | ||
</odoo> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line
@@ -0,0 +1,5 @@ | |||
# -*- coding: utf-8 -*- | |||
# © 2016-2017 Elico Corp (https://www.elico-corp.com) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2016-2019 (everywhere)
<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'}"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improve readability
Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove data key and merge with odoo
@@ -0,0 +1,25 @@ | |||
<!-- -*- coding: utf-8 -*- --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no coding in XML
Updated again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. waiting for Travis
Please check travis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small details.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No license here.
# © 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from openerp import fields, models | |
from odoo import fields, models |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
class ProjectProjectCategory(models.Model): | ||
_name = 'project.project.category' | ||
|
||
name = fields.Char('Name', required=True, translate=True, index=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need the strings
Travis is failing |
@Elico-Corp/odoo-reviewers