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

[MIG][10.0] base_delivery_carrier_label #124

Merged
merged 11 commits into from
May 4, 2017

Conversation

angelmoya
Copy link
Member

No description provided.

@pedrobaeza pedrobaeza mentioned this pull request Apr 10, 2017
13 tasks
@angelmoya angelmoya changed the title [MIG][WIP][10.0] base_delivery_carrier_label [MIG][10.0] base_delivery_carrier_label Apr 11, 2017
@angelmoya
Copy link
Member Author

I add improvemets for generate manifest from #74

@angelmoya angelmoya force-pushed the 10.0-mig-base_delivery_carrier_label branch from 798b6d7 to 7625d97 Compare April 11, 2017 07:31
@@ -1 +1,2 @@
from . import models
Copy link
Contributor

Choose a reason for hiding this comment

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

add # -- coding: utf-8 -- on top of .py files

# Copyright (C) 2015 FactorLibre (http://www.factorlibre.com)
# Ismael Calvo <ismael.calvo@factorlibre.com>
#
# This program is free software: you can redistribute it and/or modify
Copy link
Contributor

Choose a reason for hiding this comment

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

just link licence file

@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
Copy link
Contributor

Choose a reason for hiding this comment

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

set odoo and remove data

@angelmoya
Copy link
Member Author

@EBII changes done

Copy link
Member

@yvaucher yvaucher left a comment

Choose a reason for hiding this comment

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

Hello thanks for the migration.

Could you fix those few things to improve. See my inline comments

Please also remove access rules for the wizard

# © 2015 FactorLibre (http://www.factorlibre.com)
# Ismael Calvo <ismael.calvo@factorlibre.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api, exceptions, _
Copy link
Member

Choose a reason for hiding this comment

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

s/openerp/odoo

@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
# © 2015 FactorLibre (http://www.factorlibre.com)
Copy link
Member

Choose a reason for hiding this comment

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

Use the word Copyright instead of the symbol ©

<footer attrs="{'invisible': [('state', '!=', 'init')]}">
<button name="get_manifest_file" type="object"
string="Get Manifest File" class="oe_highlight"/>
or
Copy link
Member

Choose a reason for hiding this comment

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

You can remove the or it has been removed in all wizards

<field name="model">manifest.wizard</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Manifest" version="7.0">
Copy link
Member

Choose a reason for hiding this comment

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

version="7.0" to remove

# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp.tests.common import TransactionCase
from openerp import fields, exceptions
Copy link
Member

Choose a reason for hiding this comment

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

Import odoo



class ManifestWizardCase(TransactionCase):
def setUp(self, *args, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

setUp doesn't take other argument than self you can remove *args, **kwargs

@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# © 2017 Angel Moya (PESOL)
Copy link
Member

Choose a reason for hiding this comment

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

s/©/Copyright

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="manifest_wizard_form" model="ir.ui.view">
Copy link
Member

Choose a reason for hiding this comment

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

As you add a new file, can you remove some spaces there ?

('init', 'Init'),
('file', 'File'),
('end', 'END')
], string='State', readonly=True, default='init')
Copy link
Member

Choose a reason for hiding this comment

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

string='State' is not necessary (field label is by default attribute name with upper first letter

@yvaucher
Copy link
Member

Please also include : #131

@sebastienbeau sebastienbeau merged commit e1ffebe into OCA:10.0 May 4, 2017
vrenaville pushed a commit to camptocamp/delivery-carrier that referenced this pull request Jul 2, 2018
This pull request was closed.
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.

5 participants