Skip to content

Instantly share code, notes, and snippets.

View ppa-odoo's full-sized avatar
🎯
Focusing

Prashant Panchal ppa-odoo

🎯
Focusing
View GitHub Profile
#!/usr/bin/env python3
"""Print emails from a given date interval.
Usage:
$ %(prog)s <since_date> <before_date>
since_date < before_date
Date format: DD-Mon-YYYY e.g., 3-Mar-2014
@ppa-odoo
ppa-odoo / FedexProcessShipmentRequest.py
Created June 13, 2023 07:23
how-to-add-customs-value-in-python-fedex-for-international-shipments: How to add customs value in python-fedex for international shipments?
#REF: https://stackoverflow.com/questions/58949887/how-to-add-customs-value-in-python-fedex-for-international-shipments
"""
This example shows how to create an international shipment and generate a waybill as output.
The example takes outset in a real practical use case, where electronic trade documents are
used and an existing PDF commercial invoice is added along with product descriptions via ETD.
Further, it adds event notifications to allow for emails to be sent to the end recipient.
The script is comprised of a FedExLabelHelper class with all core functions, and a use case
example with minimal dummy data
"""
from example_config import CONFIG_OBJ