Harald Welte
042e3b73bd
dp_delivery_carrier: fix various typos in customs error path
2021-11-23 19:28:05 +01:00
Harald Welte
879ba64ed7
Raise exception if customs_code is not set
...
During WPINT label generation I'm trying to remove all spaces from the
customs code (HTS) by using the str.replace() method. However, if no
customs code is set at all, we run into an exception as the "False"
instance of the bool type doesn't have a replace() method.
Closes: SYS#5451
2021-06-01 23:25:52 +02:00
Harald Welte
539faec1cf
wpint: try to shrink the number of customs lines, if needed
...
python-inema has a method that tries to combine multiple customs
lines into one, if the HTS of those lines is identical. We forgot
to use it so far.
2021-04-27 19:25:45 +02:00
Harald Welte
f85e288cf8
strip internal spaces in HTS number
...
The WPINT API requires a 10-digit HTS number without any spaces,
while the source number may contain spaces. Our use of 'strip()' is
insufficient as it only removes leading and trailing spaces, but not
spaces inside the number. We need to do replace(' ', '') instead.
Related: SYS#5415
2021-04-18 10:47:41 +02:00
Harald Welte
3ebb9425d0
wpint: Raise exception if creating shipping label fails for some reason
2021-03-18 18:03:00 +01:00
Harald Welte
2ae2229576
dp_delivery_carrier: remove printing of credentials to log
2021-03-18 15:54:42 +01:00
Harald Welte
6b5cd2bca0
res_config: Fix de-selection of sandbox environment
2021-03-18 12:01:13 +01:00
Harald Welte
416ca1377e
make use of customs_description module
...
The new customs_description module provides us with a better way
to provide customs description + HTS codes for product templates
or categories.
2021-03-08 22:09:02 +01:00
Harald Welte
824d432937
support Warenpost International API
...
there's an updated inema module, supporting a new Warenpost
International API; let's add support for it here.
2021-03-08 22:08:46 +01:00
Harald Welte
5df351493e
differentiate between EU / outside EU services
2021-03-07 13:49:30 +01:00
Harald Welte
b685d48fd9
security: Read access to DP Service Class
2021-03-07 13:49:30 +01:00
Harald Welte
1b317162dd
add missing models/__init__.py required by some configurations
2018-01-05 09:40:05 +01:00
Harald Welte
59dd4bde17
pre-fix ZIP with state code (if state assigned + code exists)
...
There are some countries (notably US + Canada) where the ZIP is
customarily prefixed with the two-letter state code.
Fixes: SYS#3625
2017-05-14 23:33:30 +02:00
Harald Welte
ae9dbeb740
fix syntax error about missing closing ')'
2017-01-10 15:30:04 +01:00
Harald Welte
6738c68324
raise a Warning if funds in wallet are insufficient for label
2017-01-10 15:26:50 +01:00
Harald Welte
6403eb7151
fix res.partner.title handling in Internetmarke Address Generation
...
We don't want to try to print the object, but the abbreviated version
of the title
2016-12-13 14:32:29 +01:00
Harald Welte
2f31909b6b
fix build_im_addr() for the case when both company + person name are given
...
When a company name and person name are given, we need to first generate
a PersonName object using inema build_pers_name() method, and then pass
that as 'person' kwarg into the build_comp_addr() method. We cannot
simply pass alon the string name as the code did so far.
This requires python-inema 0.2 or later, but it seems like a version
dependency on an external python module cannot be expressed in
__openerp__.py
2016-12-13 14:20:23 +01:00
Harald Welte
3c6c66a4e2
Properly initialize boolean 'international' field
...
Now the field is correctly set on the DP Service List
2016-07-30 19:44:43 +02:00
Harald Welte
3cb3683a8b
Introduce classes and automatic weight/destination based pricing
...
The user now simply chooses 'registered letter' or 'letter' and the
calculator determines whihc type of product and what amount of franking
is required.
2016-07-15 23:48:08 +02:00
Harald Welte
75e7a4e970
typo in partner.name
2016-07-15 20:29:30 +02:00
Harald Welte
f244af540f
Adapt to typo of Internetmarke 1C4A API
...
Balance is written with one 'l', except in the API of Deutsche Post
2016-07-15 17:16:40 +02:00
Harald Welte
db33beee81
fix company name when partner.is_company
2016-07-15 17:12:35 +02:00
Harald Welte
59be0de70f
use voucher ID for filename, as tracking ID might not be present
2016-07-15 17:10:54 +02:00
Harald Welte
4a6217e9a7
fixup of syntax after last commit
2016-07-15 17:10:43 +02:00
Harald Welte
663fde65f4
use partner.is_company as indicator for company address
2016-07-15 17:03:20 +02:00
Harald Welte
77f0962743
make sure tracking number is always set, even if there is none
...
Depending on the product used, there is no tracking number. However,
the odoo shipping infrastructure expects us to return one.
Also, add a bogus space at the beginning of the tracking number, as odoo
shipping infrastructure removes the first character ?!?
2016-07-15 16:49:34 +02:00
Harald Welte
0b16804bcb
fix various typos leading to exceptions
2016-07-15 16:49:20 +02:00
Harald Welte
074bc533cb
avoid 'False' being printed on address labels for street2 / person
2016-07-15 16:48:49 +02:00
Harald Welte
c7eb19fa57
more heuristics for splitting street/house and first/last name
2016-07-15 16:48:12 +02:00
Harald Welte
0f04146ef9
it's key_phase, not key_seq
2016-07-14 10:36:46 +02:00
Harald Welte
457caf7e30
fix typos in dp_shipping_service.py
2016-07-14 10:25:37 +02:00
Harald Welte
c1f9e4c852
rename StockPicking class to SMCStockPicking to avoid namespace clashes
2016-07-14 10:11:23 +02:00
Harald Welte
3eee973a79
add missing models/res_config.py
2016-07-14 10:08:44 +02:00
Harald Welte
14356e8203
initial import of Odoo Internetmarke Code
2016-07-14 01:27:25 +02:00