Harald Welte
042e3b73bd
dp_delivery_carrier: fix various typos in customs error path
1 year ago
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
2 years ago
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.
2 years ago
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
2 years ago
Harald Welte
3ebb9425d0
wpint: Raise exception if creating shipping label fails for some reason
2 years ago
Harald Welte
2ae2229576
dp_delivery_carrier: remove printing of credentials to log
2 years ago
Harald Welte
6b5cd2bca0
res_config: Fix de-selection of sandbox environment
2 years ago
Harald Welte
71a7973fc3
mark as 0.2 for customs_description dependency
2 years ago
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.
2 years ago
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.
2 years ago
Harald Welte
5df351493e
differentiate between EU / outside EU services
2 years ago
Harald Welte
b685d48fd9
security: Read access to DP Service Class
2 years ago
Harald Welte
1b317162dd
add missing models/__init__.py required by some configurations
5 years ago
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
6 years ago
Harald Welte
ae9dbeb740
fix syntax error about missing closing ')'
6 years ago
Harald Welte
2af5ece320
fix import statement for models directory
6 years ago
Harald Welte
6738c68324
raise a Warning if funds in wallet are insufficient for label
6 years ago
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
6 years ago
Harald Welte
685c315fa3
Add external dependency to python inema module.
...
We would like to depend on >= 0.2, but it seems that's not possible.
6 years ago
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
6 years ago
Harald Welte
3c6c66a4e2
Properly initialize boolean 'international' field
...
Now the field is correctly set on the DP Service List
7 years ago
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.
7 years ago
Harald Welte
d6331f83e2
use "All" product category for the delivery product
7 years ago
Harald Welte
75e7a4e970
typo in partner.name
7 years ago
Harald Welte
c5099664ec
data: fix typo (missing N at end of EINSCHREIBEN)
7 years ago
Harald Welte
c0e1241cf5
data: Add Kompaktbrief Intl + Einschreiben
7 years ago
Harald Welte
84bab0581e
data: Add Maxibrief 2kg national
7 years ago
Harald Welte
f244af540f
Adapt to typo of Internetmarke 1C4A API
...
Balance is written with one 'l', except in the API of Deutsche Post
7 years ago
Harald Welte
db33beee81
fix company name when partner.is_company
7 years ago
Harald Welte
59be0de70f
use voucher ID for filename, as tracking ID might not be present
7 years ago
Harald Welte
4a6217e9a7
fixup of syntax after last commit
7 years ago
Harald Welte
663fde65f4
use partner.is_company as indicator for company address
7 years ago
Harald Welte
590f728a68
fix naming of action in res_config.xml
7 years ago
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 ?!?
7 years ago
Harald Welte
0b16804bcb
fix various typos leading to exceptions
7 years ago
Harald Welte
074bc533cb
avoid 'False' being printed on address labels for street2 / person
7 years ago
Harald Welte
c7eb19fa57
more heuristics for splitting street/house and first/last name
7 years ago
Harald Welte
fbaa84399d
add link to configuration in website.config / shipping service menu
7 years ago
Harald Welte
6ce8a3a0d1
demo_data: fix UOM
7 years ago
Harald Welte
7ee4d6d0b4
demo data: partner_id / product_id required
7 years ago
Harald Welte
0f04146ef9
it's key_phase, not key_seq
7 years ago
Harald Welte
3b3dc724d6
fix typos in res_config.xml
7 years ago
Harald Welte
2230af6907
views: add search and fixe DP Service List
7 years ago
Harald Welte
51bfdf0288
fix naming of menu item
7 years ago
Harald Welte
457caf7e30
fix typos in dp_shipping_service.py
7 years ago
Harald Welte
bb91f05495
fix syntax error in __openerp__.py
7 years ago
Harald Welte
c1f9e4c852
rename StockPicking class to SMCStockPicking to avoid namespace clashes
7 years ago
Harald Welte
3eee973a79
add missing models/res_config.py
7 years ago
Harald Welte
14356e8203
initial import of Odoo Internetmarke Code
7 years ago