Skip to content
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

Open
wants to merge 8 commits into
base: 12.0
Choose a base branch
from

Conversation

Reinhard-sheng
Copy link

@Elico-Corp/odoo-reviewers

@@ -0,0 +1,60 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

png

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch to LGPL too


This module extends the functionality of Project to add a category on the project itself, also support search filter and group by.

Installation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this section

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/Elico-Corp/elico_odoo/issues>`_.
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGPL

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

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>
Copy link
Contributor

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)
Copy link
Contributor

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'}"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

improve readability

@Reinhard-sheng
Copy link
Author

Updated

Copy link
Contributor

@elicoidal elicoidal left a 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">
Copy link
Contributor

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 -*- -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no coding in XML

@Reinhard-sheng
Copy link
Author

Updated again.

Copy link
Contributor

@elicoidal elicoidal left a 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

@elicoidal
Copy link
Contributor

Please check travis

Copy link

@JoJoJoJoJoJoJo JoJoJoJoJoJoJo left a 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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

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

@@ -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).

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
from openerp import fields, models
from odoo import fields, models

@Reinhard-sheng Reinhard-sheng changed the title [MIG] project_project_category: Migration to 12.0 [12.0][BR001549][MIG] project_project_category: Migration to 12.0 Mar 26, 2019
Copy link

@JoJoJoJoJoJoJo JoJoJoJoJoJoJo left a 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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need the strings

@elicoidal
Copy link
Contributor

Travis is failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants