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

[14.0][ADD] delivery_easypost_oca #868

Closed
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
869fc9a
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 22, 2024
833338d
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 22, 2024
e0f5a92
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 22, 2024
cc6fed8
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 22, 2024
b4dec30
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 23, 2024
438992e
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 24, 2024
eeda51f
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 24, 2024
31b2026
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 24, 2024
0ec9196
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 24, 2024
2afb38c
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 24, 2024
7413883
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 24, 2024
47166c6
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 30, 2024
1712ba5
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 31, 2024
854b903
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 31, 2024
01cf57a
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 31, 2024
0c734bb
[14.0][ADD] delivery_easypost_oca
antoniodavid Jul 31, 2024
d72af7c
[ADD] delivery_oca_easypost
antoniodavid Aug 1, 2024
d76df96
[14.0][ADD] delivery_easypost_oca
antoniodavid Sep 27, 2024
ea4834d
[14.0][ADD] delivery_easypost_oca
antoniodavid Sep 27, 2024
4750cc2
[14.0][ADD] delivery_easypost_oca
antoniodavid Sep 27, 2024
600d225
[14.0][ADD] delivery_easypost_oca
antoniodavid Sep 27, 2024
7d0bae2
[14.0][ADD] delivery_easypost_oca
antoniodavid Sep 27, 2024
6fc6e3a
[14.0][ADD] delivery_easypost_oca
antoniodavid Sep 27, 2024
5108e98
[ADD][14.0] delivery_easypost_oca
antoniodavid Jan 30, 2025
655386c
[ADD][14.0] delivery_easypost_oca
antoniodavid Jan 30, 2025
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ repos:
- --color
- --fix
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v2.3.0
antoniodavid marked this conversation as resolved.
Show resolved Hide resolved
hooks:
- id: trailing-whitespace
# exclude autogenerated files
Expand Down
100 changes: 100 additions & 0 deletions delivery_easypost_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
=====================
Easypost Shipping OCA
=====================

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

.. |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_easypost_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_easypost_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 `Easpost <https://easypost.com>`_ to the available carriers.

It allows you to register shippings, generate labels, get rates from order so no need of exchanging
any kind of file.

When a sales order is created in Odoo and the EasyPost carrier is assigned, the shipping price
will be automatically calculated using the lowest estimated rate from EasyPost,
based on the order information, including the shipping address and products.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

#. Add a carrier account with delivery type ``easypost oca`` and fill in your credentials (Easypost
Test API Key and Easypost Production API Key)
#. Configure in Odoo the field File Format).

Usage
=====

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

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_easypost_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
~~~~~~~

* Binhex

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

* `Binhex <https://www.binhex.cloud>`_:

* Antonio Ruban
* Christian Ramos

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_easypost_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions delivery_easypost_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
19 changes: 19 additions & 0 deletions delivery_easypost_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Easypost Shipping OCA",
"version": "14.0.1.0.1",
"summary": """ OCA Delivery Easypost """,
"author": "Binhex, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/delivery-carrier",
"category": "Inventory/Delivery",
"depends": [
"delivery",
"mail",
],
"data": [
"views/delivery_carrier_views.xml",
"views/product_packaging_views.xml",
],
"external_dependencies": {"python": ["easypost", "easypost==9.3.0"]},
antoniodavid marked this conversation as resolved.
Show resolved Hide resolved
"installable": True,
"license": "AGPL-3",
}
219 changes: 219 additions & 0 deletions delivery_easypost_oca/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_easypost_oca
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-22 13:59+0000\n"
"PO-Revision-Date: 2024-07-22 13:59+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: delivery_easypost_oca
#: model_terms:ir.ui.view,arch_db:delivery_easypost_oca.view_product_packaging_delivery_form_inherit_easypost_oca
msgid ""
"<span attrs=\"{'invisible': [('package_carrier_type', '!=', "
"'easypost_oca')]}\">Inches</span>"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__easypost_oca_delivery_multiple_packages__batch
msgid "Batch"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_product_packaging__package_carrier_type
msgid "Carrier"
msgstr "Transportista"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_product_packaging__easypost_oca_carrier
msgid "Carrier Prefix"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model,name:delivery_easypost_oca.model_choose_delivery_carrier
msgid "Delivery Carrier Selection Wizard"
msgstr "Asistente de selección de transportista"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__easypost_oca_delivery_multiple_packages
msgid "Delivery Multiple Packages"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_choose_delivery_carrier__display_name
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__display_name
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_product_packaging__display_name
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_sale_order__display_name
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__easypost_oca_label_file_type__epl2
msgid "EPL2"
msgstr ""

#. module: delivery_easypost_oca
#: model_terms:ir.ui.view,arch_db:delivery_easypost_oca.easy_view_delivery_carrier_form_inherit
msgid "Easypost Configuration"
msgstr "Configuración Easypost"

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__delivery_type__easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__product_packaging__package_carrier_type__easypost_oca
msgid "Easypost OCA"
msgstr "Easypost OCA"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__easypost_oca_batch_id
msgid "Easypost Oca Batch"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__easypost_oca_carrier_id
msgid "Easypost Oca Carrier"
msgstr "Transportista Easypost"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_choose_delivery_carrier__easypost_oca_carrier_name
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_sale_order__easypost_oca_carrier_name
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__easypost_oca_carrier_name
msgid "Easypost Oca Carrier Name"
msgstr "Nombre del transportista Easypost"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_choose_delivery_carrier__easypost_oca_rate_id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_sale_order__easypost_oca_rate_id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__easypost_oca_rate_id
msgid "Easypost Oca Rate"
msgstr "Tarifa"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_choose_delivery_carrier__easypost_oca_shipment_id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_sale_order__easypost_oca_shipment_id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__easypost_oca_shipment_id
msgid "Easypost Oca Shipment"
msgstr "Envío"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__easypost_oca_tracking_url
msgid "Easypost Oca Tracking Url"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__easypost_oca_production_api_key
msgid "Easypost Production API Key"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__easypost_oca_test_api_key
msgid "Easypost Test API Key"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,help:delivery_easypost_oca.field_delivery_carrier__easypost_oca_production_api_key
msgid "Enter your API production key from Easypost account"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,help:delivery_easypost_oca.field_delivery_carrier__easypost_oca_test_api_key
msgid "Enter your API test key from Easypost account."
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_choose_delivery_carrier__id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_product_packaging__id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_sale_order__id
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking__id
msgid "ID"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__easypost_oca_label_file_type
msgid "Label Format"
msgstr "Formato de etiqueta"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_choose_delivery_carrier____last_update
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier____last_update
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_product_packaging____last_update
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_sale_order____last_update
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_stock_picking____last_update
msgid "Last Modified on"
msgstr "Última modificación el"

#. module: delivery_easypost_oca
#: code:addons/delivery_easypost_oca/models/delivery_carrier.py:0
#, python-format
msgid "No rate found for this shipping."
msgstr "No se encontró tarifa para este envío."

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__easypost_oca_label_file_type__pdf
msgid "PDF"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__easypost_oca_label_file_type__png
msgid "PNG"
msgstr ""

#. module: delivery_easypost_oca
#: model:ir.model,name:delivery_easypost_oca.model_product_packaging
msgid "Product Packaging"
msgstr "Empaquetado del producto"

#. module: delivery_easypost_oca
#: model:ir.model.fields,field_description:delivery_easypost_oca.field_delivery_carrier__delivery_type
msgid "Provider"
msgstr "Proveedor"

#. module: delivery_easypost_oca
#: model:ir.model,name:delivery_easypost_oca.model_sale_order
msgid "Sales Order"
msgstr "Orden de venta"

#. module: delivery_easypost_oca
#: code:addons/delivery_easypost_oca/models/delivery_carrier.py:0
#, python-format
msgid ""
"Shipment created into Easypost<br/><b>Tracking Numbers:</b> "
"%s<br/><b>Carrier Account:</b> %s<br/>"
msgstr ""
"Envio creado dentro de Easypost<br/><b>Número de seguimiento:</b> "
"%s<br/><b>Cuenta del transportista:</b> %s<br/>"

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__easypost_oca_delivery_multiple_packages__shipments
msgid "Shipments"
msgstr "Envios"

#. module: delivery_easypost_oca
#: model:ir.model,name:delivery_easypost_oca.model_delivery_carrier
msgid "Shipping Methods"
msgstr "Métodos de envío"

#. module: delivery_easypost_oca
#: model:ir.model,name:delivery_easypost_oca.model_stock_picking
msgid "Transfer"
msgstr "Albarán"

#. module: delivery_easypost_oca
#: code:addons/delivery_easypost_oca/models/delivery_carrier.py:0
#, python-format
msgid "You can't cancel Easypost shipping."
msgstr "No puedes cancelar el envío de Easypost."

#. module: delivery_easypost_oca
#: model:ir.model.fields.selection,name:delivery_easypost_oca.selection__delivery_carrier__easypost_oca_label_file_type__zpl
msgid "ZPL"
msgstr ""
5 changes: 5 additions & 0 deletions delivery_easypost_oca/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import delivery_carrier
from . import product_packaging
from . import stock_picking
from . import easypost_request
from . import sale_order
Loading
Loading