-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
[MIG][10.0] base_delivery_carrier_label #124
Conversation
I add improvemets for generate manifest from #74 |
FIX merge
798b6d7
to
7625d97
Compare
@@ -1 +1,2 @@ | |||
from . import 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.
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 |
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.
just link licence file
@@ -0,0 +1,50 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<openerp> |
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.
set odoo and remove data
@EBII changes done |
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.
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, _ |
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.
s/openerp/odoo
@@ -0,0 +1,43 @@ | |||
# -*- coding: utf-8 -*- | |||
# © 2015 FactorLibre (http://www.factorlibre.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.
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 |
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.
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"> |
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.
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 |
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.
Import odoo
|
||
|
||
class ManifestWizardCase(TransactionCase): | ||
def setUp(self, *args, **kwargs): |
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.
setUp
doesn't take other argument than self
you can remove *args, **kwargs
@@ -0,0 +1,23 @@ | |||
# -*- coding: utf-8 -*- | |||
# © 2017 Angel Moya (PESOL) |
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.
s/©/Copyright
@@ -0,0 +1,47 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<odoo> | |||
<record id="manifest_wizard_form" model="ir.ui.view"> |
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.
As you add a new file, can you remove some spaces there ?
('init', 'Init'), | ||
('file', 'File'), | ||
('end', 'END') | ||
], string='State', readonly=True, default='init') |
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.
string='State'
is not necessary (field label is by default attribute name with upper first letter
Please also include : #131 |
Eori number
No description provided.