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

Port v8 delivery_carrier_label_gls #91

Merged
merged 9 commits into from
Nov 21, 2016
Merged

Conversation

bealdav
Copy link
Member

@bealdav bealdav commented Jun 20, 2016

Needs review

+++++++++++++++++++++++++++++++++++

Unibox service implementation:
- send delivery order informations and parcel infothe GLS unibox server

Choose a reason for hiding this comment

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

add an empty line before the list

Choose a reason for hiding this comment

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

a/infothe/info to the

@elicoidal
Copy link

@bealdav thanks for the contribution!

@bealdav bealdav mentioned this pull request Jun 22, 2016
@yvaucher
Copy link
Member

There is an error in the tests:

2016-06-22 12:56:21,035 24113 ERROR openerp_test openerp.addons.delivery_carrier_label_gls.tests.test_gls: ` openerp.exceptions.Warning: Min size for field 'outbound_depot' is 6 :  4 given

@bealdav bealdav closed this Aug 5, 2016
@bealdav bealdav reopened this Aug 5, 2016
@lasley lasley added this to the 8.0 milestone Oct 5, 2016
@bealdav bealdav force-pushed the port-v8-gls branch 3 times, most recently from d386e8d to d32302b Compare November 12, 2016 18:11
@bealdav
Copy link
Member Author

bealdav commented Nov 12, 2016

Error with runbot AttributeError: 'Country' object has no attribute 'alpha_2'
Runbot not use the right version of pycountry (16.11.8) defined in travis.yml
I don't know why ?

@bealdav
Copy link
Member Author

bealdav commented Nov 14, 2016

https://pypi.python.org/pypi/pycountry changes doc say:

Attribute names are more coherent now, too. Note that “alpha2”, “alpha4”, etc. are now using an underscore as that’s the pattern in the upstream packages. So it’s “alpha_2” now.

Then I switch my code to alpha_2

@gurneyalex could you tell me how ci/runbot manage versions of libs.
Does it uses travis.yml ? requirement.txt ?
How can we explain the wrong version taken account (with alpha2) ?

@bealdav
Copy link
Member Author

bealdav commented Nov 14, 2016

@pedrobaeza you're also impacted there
https://github.com/OCA/community-data-files/blob/8.0/base_iso3166/models/res_country.py#L30-L35
FYI, your module doesn't work with the new version of the lib.

@bealdav
Copy link
Member Author

bealdav commented Nov 15, 2016

any news @gurneyalex @yvaucher ?

@gurneyalex
Copy link
Member

@bealdav @yvaucher @pedrobaeza
This is a good test. I've enabled docker build on this repository, and triggered a rebuild for this PR. Let's see if this fixes the issue.

@gurneyalex
Copy link
Member

runbot is red (actually orange) because

2016-11-16 09:33:06,780 133 INFO openerp_test openerp.modules.loading: loading delivery_carrier_label_gls/demo/product.xml
2016-11-16 09:33:07,194 133 WARNING openerp_test openerp.models: stock.inventory.line.create() with unknown fields: product_uom
2016-11-16 09:33:07,220 133 WARNING openerp_test openerp.models: stock.inventory.line.create() with unknown fields: product_uom

@gurneyalex
Copy link
Member

@bealdav sorry?

@yvaucher
Copy link
Member

stock.inventory.line.create() with unknown fields: product_uom -> product_uom_id

https://github.com/OCA/OCB/blob/8.0/addons/stock/stock.py#L2912

@bealdav
Copy link
Member Author

bealdav commented Nov 16, 2016

Thanks I'll push

Copy link
Contributor

@hparfr hparfr left a comment

Choose a reason for hiding this comment

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

Minor remarks

string='Warehouse',
readonly=True, oldname='gls_warehouse',
help="GLS warehouse near customer location (T8700)\n"
"Information common to whole companies "
Copy link
Contributor

Choose a reason for hiding this comment

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

setting for all companies

help="Generate label when delivery is done")
gls_test = fields.Boolean(
string='Url Test',
help="Check if requested webservice is test plateform")
Copy link
Contributor

Choose a reason for hiding this comment

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

Use testing webservice

@api.multi
def _get_carrier_tracking_url(self):
if self.carrier_id.type == 'gls':
res = ("https://gls-group.eu/FR/fr/suivi-colis?"
Copy link
Contributor

Choose a reason for hiding this comment

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

use a const

@hparfr
Copy link
Contributor

hparfr commented Nov 16, 2016

👍

@sebastienbeau
Copy link
Member

👍 ok for me too

@sebastienbeau sebastienbeau merged commit 8c16b2d into OCA:8.0 Nov 21, 2016
@bealdav bealdav deleted the port-v8-gls branch November 21, 2016 08:48
@bealdav
Copy link
Member Author

bealdav commented Nov 21, 2016

please @codingforfun could you review my PR above ?

@bealdav
Copy link
Member Author

bealdav commented Nov 22, 2016

@codingforfun sorry for the inconvenient.
Now fixed.

@codingforfun
Copy link

THX a lot.
Sorry I hadn't the time yet for review.

vrenaville pushed a commit to camptocamp/delivery-carrier that referenced this pull request Jul 2, 2018
Fix building project selection values
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.

9 participants