contents:
Customizes company to have UPS API Information
copyright: |
|
---|---|
copyright: |
|
license: | AGPL, see LICENSE for more details. |
Company is the highest level of abstraction in open ERP This will add four fields for license key, username, password
and shipper no.
Returns the credentials in tuple :param cursor: DB Cursor :param User: Integer ID of curr user :param context: Context dictionary, no direct usage
Returns: | (license_key, user_id, password, ups_test) |
---|
Returns the UPS Shipper
Returns the codes of weight and length UOM used by UPS
Customizes Address to return UPS API style address
copyright: |
|
---|---|
copyright: |
|
license: | AGPL, see LICENSE for more details. |
Add method to return address in UPS format
This method creates the dictionary of all the details of the recipient of the package. These details are to be used by the UPS integration API.
Parameters: |
|
---|---|
Returns: | Returns the dictionary comprising of the details of the package recipient. |
Shipping register
copyright: |
|
---|---|
copyright: |
|
license: | AGPL, see LICENSE for more details. |
Model to store the UPS Service Types and Packaging Types
General register to record all shipments and keep track of it.
This method calls the Accept Price function of the wizard . :param cursor: Database Cursor :param user: ID of User :param ids: ID of Current record. :param context: Context(no direct use). :return: True
This method calls the UPS API, sends the ShipmentConfirm Request to the API and gets the total cost of shipment and tracking number.
Parameters: |
|
---|
Returns API with credentials set
Sets from address as shipper address if nothing is specified
This method will set this record back to draft and editable mode
Model to record all packages corresponding to a shipment record and keep track of it.
Inherits stock.picking to create a new page for ‘Shipping Information’ which appears only in ‘done’ state.
copyright: |
|
---|---|
copyright: |
|
license: | AGPL, see LICENSE for more details. |
Inherits stock.picking to integrate UPS API with OpenERP.
Generates shipping record from given information
On change of shipping of existing set the packings