Commit Graph

21 Commits

Author SHA1 Message Date
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 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 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 14356e8203 initial import of Odoo Internetmarke Code 2016-07-14 01:27:25 +02:00