Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] delivery_ups_oca: Migration to 15.0 #986

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions delivery_ups_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
================
Delivery UPS OCA
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a89efe46304fac9cd47e1f827c23f8d351066a71d4ca44f577e20d37862377a8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github
:target: https://github.com/OCA/delivery-carrier/tree/14.0/delivery_ups_oca
:alt: OCA/delivery-carrier
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/delivery-carrier-14-0/delivery-carrier-14-0-delivery_ups_oca
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds `UPS <https://ups.com>`_ to the available carriers.

It allows you to register shippings, generate labels, get rates from order, read
shipping states and cancel shipments using UPS webservice, so no need of exchanging
any kind of file.

When a sales order is created in Odoo and the UPS carrier is assigned, the shipping
price that will be obtained will be the price that the UPS webservice estimates
according to the order information (address and products).

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

#. Add a carrier account with delivery type ``ups`` and fill in your credentials (UPS
Client and UPS Client Secret)
#. Configure in Odoo all required fields of the UPS tab with your account data
https://wwwapps.ups.com/ppc/ppc.html (Shipper number, Default Packaging, Package
Dimension Code, Package Weight Code and File Format).
#. If yo have "Tracking state update sync" checked all delivery orders state check will
be done querying UPS services.
#. It is possible to create a UPS carrier for cash on delivery parcels. Select the
``ups`` delivery type and check the "Cash on Delivery" checkbox under the "UPS" tab.
It is required to select the "UPS COD Funds Code" when the "Cash on Delivery" option
is selected.

**NOTE** You need to add an APP from https://developer.ups.com/ for using the
webservice.

Usage
=====

You have to set the created shipping method in the delivery order to ship:

* When the picking is 'Transferred', a *Create Shipping Label* button appears. Just
click on it, and if all went well, the label will be 'attached'.
* If the shipment creation process fails, a validation error will appear displaying UPS
error.
* When the delivery order is cancelled, it's automatically cancelled too in UPS.
* If you have "Tracking state update sync" checked in the shipping method, a periodical
state check will be done querying UPS services.

Known issues / Roadmap
======================

* Support international forms
* Support package service options

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_ups_oca%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Hunki Enterprises BV
* Tecnativa
* ForgeFlow

Contributors
~~~~~~~~~~~~

* Holger Brunn <mail@hunki-enterprises.nl> (https://hunki-enterprises.nl)
* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor Martínez
* Pedro M. Baeza

* `ForgeFlow <https://www.forgeflow.com>`_:

* Jordi Ballester

* `Sygel <https://www.sygel.es>`_:

* Manuel Regidor

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/14.0/delivery_ups_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions delivery_ups_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
25 changes: 25 additions & 0 deletions delivery_ups_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2020 Hunki Enterprises BV
# Copyright 2021-2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Delivery UPS OCA",
"summary": "Integrate UPS webservice",
"version": "15.0.1.0.1",
"development_status": "Beta",
"category": "Delivery",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Hunki Enterprises BV, Tecnativa, ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
"excludes": ["delivery_ups"],
"depends": [
"delivery",
"delivery_package_number",
"delivery_price_method",
"delivery_state",
],
"data": [
"data/product_packaging_data.xml",
"views/delivery_carrier_view.xml",
"views/stock_picking_view.xml",
],
}
120 changes: 120 additions & 0 deletions delivery_ups_oca/data/product_packaging_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2021 Tecnativa - Víctor Martínez
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="product_packaging_ups_01" model="product.packaging">
<field name="shipper_package_code">01</field>
<field name="name">UPS Letter</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_02" model="product.packaging">
<field name="shipper_package_code">02</field>
<field name="name">Customer Supplied Package</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_03" model="product.packaging">
<field name="shipper_package_code">03</field>
<field name="name">Tube</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_04" model="product.packaging">
<field name="shipper_package_code">04</field>
<field name="name">PAK</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_21" model="product.packaging">
<field name="shipper_package_code">21</field>
<field name="name">UPS Express Box</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_24" model="product.packaging">
<field name="shipper_package_code">24</field>
<field name="name">UPS 25KG Box</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_25" model="product.packaging">
<field name="shipper_package_code">25</field>
<field name="name">UPS 10KG Box</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_30" model="product.packaging">
<field name="shipper_package_code">30</field>
<field name="name">Pallet</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_2a" model="product.packaging">
<field name="shipper_package_code">2a</field>
<field name="name">Small Express Box</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_2b" model="product.packaging">
<field name="shipper_package_code">2b</field>
<field name="name">Medium Express Box</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_2c" model="product.packaging">
<field name="shipper_package_code">2c</field>
<field name="name">Large Express Box</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_56" model="product.packaging">
<field name="shipper_package_code">56</field>
<field name="name">Flats</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_57" model="product.packaging">
<field name="shipper_package_code">57</field>
<field name="name">Parcels</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_58" model="product.packaging">
<field name="shipper_package_code">58</field>
<field name="name">BPM</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_59" model="product.packaging">
<field name="shipper_package_code">59</field>
<field name="name">First Class</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_60" model="product.packaging">
<field name="shipper_package_code">60</field>
<field name="name">Priority</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_61" model="product.packaging">
<field name="shipper_package_code">61</field>
<field name="name">Machineables</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_62" model="product.packaging">
<field name="shipper_package_code">62</field>
<field name="name">Irregulars</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_63" model="product.packaging">
<field name="shipper_package_code">63</field>
<field name="name">Parcel Post</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_64" model="product.packaging">
<field name="shipper_package_code">64</field>
<field name="name">BPM Parcel</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_65" model="product.packaging">
<field name="shipper_package_code">65</field>
<field name="name">Media Mail</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_66" model="product.packaging">
<field name="shipper_package_code">66</field>
<field name="name">BPM Flat</field>
<field name="package_carrier_type">ups</field>
</record>
<record id="product_packaging_ups_67" model="product.packaging">
<field name="shipper_package_code">67</field>
<field name="name">Standard Flat</field>
<field name="package_carrier_type">ups</field>
</record>
</odoo>
Loading