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

11.0 mig website sale hide price #241

Merged
merged 3 commits into from
Jun 28, 2018

Conversation

AbrahamTrey
Copy link
Contributor

[MIG] website_sale_hide_price: Migration to 11.0

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

Thanks for the work!

Please use the new OCA readme system: https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst

@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
Copy link
Member

Choose a reason for hiding this comment

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

This is not needed in python 3


##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
Copy link
Member

Choose a reason for hiding this comment

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

Why adding this? Delete it, please

@@ -10,5 +10,4 @@ class ResPartner(models.Model):

website_show_price = fields.Boolean(
string='Show prices on website',
default=True,
)
default=True)
Copy link
Member

Choose a reason for hiding this comment

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

Don't change coding style unnecesarily

@@ -16,3 +17,5 @@ def _compute_website_show_price(self):
for rec in self:
rec.website_show_price = (
request.env.user.partner_id.website_show_price)

Copy link
Member

Choose a reason for hiding this comment

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

🔥

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - David Vidal
# Copyright 2018 Trey, kilobytes de soluciones - Abraham Gonzalez
Copy link
Member

Choose a reason for hiding this comment

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

Credit yourself just if you make remarkable changes to the file.

@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
Copy link
Member

Choose a reason for hiding this comment

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

🔥

@@ -1,11 +1,13 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Tecnativa - David Vidal
# Copyright 2018 Trey, kilobytes de soluciones - Abraham Gonzalez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Website Sale Hide Price',
'version': '10.0.1.0.0',
Copy link
Member

Choose a reason for hiding this comment

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

11.0.1.0.0

# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Website Sale Hide Price',
'version': '10.0.1.0.0',
'category': 'Website',
'author': 'Tecnativa, '
'author': 'Trey, Kilobytes de soluciones, '
'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://www.tecnativa.com',
Copy link
Member

Choose a reason for hiding this comment

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

# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Website Sale Hide Price',
'version': '10.0.1.0.0',
'category': 'Website',
'author': 'Tecnativa, '
'author': 'Trey, Kilobytes de soluciones, '
Copy link
Member

Choose a reason for hiding this comment

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

As no remarkable changes have been done in the migration, your credits should go to the readme

'name': 'Website Sale Hide Price',
'version': '10.0.1.0.0',
'category': 'Website',
'author': 'Trey, Kilobytes de soluciones, '
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't add your company here unless you make significant changes on the module, which is not the case.

@pedrobaeza
Copy link
Member

@chienandalu please finish your review

@pedrobaeza pedrobaeza added this to the 11.0 milestone Jun 28, 2018
@pedrobaeza pedrobaeza force-pushed the 11.0-mig-website_sale_hide_price branch from 8f9781e to ffc4b85 Compare June 28, 2018 07:27
@pedrobaeza pedrobaeza merged commit 96a3d45 into OCA:11.0 Jun 28, 2018
@pedrobaeza pedrobaeza mentioned this pull request Jun 28, 2018
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants