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

[17.0][MIG] delivery_purchase: Migration to 17.0 #879

Open
wants to merge 19 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
111 changes: 111 additions & 0 deletions delivery_purchase/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
===========================
Delivery costs in purchases
===========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/17.0/delivery_purchase
: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-17-0/delivery-carrier-17-0-delivery_purchase
: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=17.0
:alt: Try me on Runboat

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

This module allows to use delivery methods defined in *delivery* module
to calculate purchase delivery costs.

It reverses destinations in delivery pricelists to use them as sources
when applying the delivery method to purchases.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to *Purchase > Orders > Purchase Orders* and create a new Purchase
Order.
2. Select a carrier in the field 'Delivery Method', fill out the rest of
the form, be sure you added lines with storable products and save the
form.
3. Confirm the purchase order.
4. Go to the linked 'Receipt' by clicking on 'Receipt' smart-button and
you will see, under 'Additional info' tab, the same carrier selected
in the purchase order.
5. If necessary, you can change the carrier in the 'Receipt'. When it is
validated, the 'shipping cost' of the receipt will be calculated
according to that new selected Carrier.
6. It is possible to change the shipping cost in picking.
7. The shipping cost will appear in an internal note created
automatically when the 'Receipt' is validated.
8. A purchase order line will have been created for the cost of picking.

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_purchase%0Aversion:%2017.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
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Ernesto Tejeda
- Pedro M. Baeza
- Vicent Cubells
- Carolina Fernandez

- `Sodexis <https://www.sodexis.com>`__:

- Sandeep J

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/17.0/delivery_purchase>`_ 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_purchase/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
17 changes: 17 additions & 0 deletions delivery_purchase/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
# Copyright 2016-2017 Pedro M. Baeza <[email protected]>
# Copyright 2017 Vicent Cubells <[email protected]>
# Copyright 2024 Carolina Fernandez
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Delivery costs in purchases",
"version": "17.0.1.1.0",
"development_status": "Production/Stable",
"category": "Operations/Purchase",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["purchase", "stock_delivery"],
"data": ["views/purchase_order_view.xml", "views/stock_picking_view.xml"],
}
98 changes: 98 additions & 0 deletions delivery_purchase/i18n/delivery_purchase.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_purchase
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order__carrier_id
msgid "Delivery Method"
msgstr ""

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order__delivery_price
msgid "Delivery Price"
msgstr ""

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "Error: no matching grid."
msgstr ""

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "Error: this delivery method is not available for this address."
msgstr ""

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/purchase_order.py:0
#, python-format
msgid "Free Shipping"
msgstr ""

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order_line__is_delivery
msgid "Is a Delivery"
msgstr ""

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order_line__delivery_picking_orig_id
msgid "Origin picking (delivery)"
msgstr ""

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/stock_picking.py:0
#, python-format
msgid ""
"Shipment sent to carrier %(carrier_name)s for shipping with tracking number "
"%(tracking_ref)s<br/>Cost: %(carrier_price)s %(currency_name)s"
msgstr ""

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_delivery_carrier
msgid "Shipping Methods"
msgstr ""

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "The shipping is free since the order amount exceeds %.2f."
msgstr ""

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "There is no matching delivery rule."
msgstr ""

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_stock_picking
msgid "Transfer"
msgstr ""
105 changes: 105 additions & 0 deletions delivery_purchase/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_purchase
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-19 14:16+0000\n"
"PO-Revision-Date: 2024-07-19 16:16+0200\n"
"Last-Translator: Leonardo J. Caballero G. <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Poedit 3.0.1\n"

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order__carrier_id
msgid "Delivery Method"
msgstr "Método de entrega"

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order__delivery_price
msgid "Delivery Price"
msgstr "Precio de entrega"

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "Error: no matching grid."
msgstr "Error: no hay cuadrícula coincidente."

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "Error: this delivery method is not available for this address."
msgstr "Error: este método de envío no está disponible para esta dirección."

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/purchase_order.py:0
#, python-format
msgid "Free Shipping"
msgstr "Envío gratis"

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order_line__is_delivery
msgid "Is a Delivery"
msgstr "Es un envío"

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order_line__delivery_picking_orig_id
#, fuzzy
msgid "Origin picking (delivery)"
msgstr "Albarán origen (entrega)"

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_purchase_order
msgid "Purchase Order"
msgstr "Orden de compra"

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Línea de pedido de compra"

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/stock_picking.py:0
#, python-format
msgid ""
"Shipment sent to carrier %(carrier_name)s for shipping with tracking number "
"%(tracking_ref)s<br/>Cost: %(carrier_price)s %(currency_name)s"
msgstr ""
"Envío enviado al transportista %(carrier_name)s para envío con número de "
"seguimiento %(tracking_ref)s<br/>Coste: %(carrier_price)s %(currency_name)s"

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

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "The shipping is free since the order amount exceeds %.2f."
msgstr "El envío es gratuito ya que el importe del pedido supera %.2f."

#. module: delivery_purchase
#. odoo-python
#: code:addons/delivery_purchase/models/delivery_carrier.py:0
#, python-format
msgid "There is no matching delivery rule."
msgstr "No hay una regla de entrega coincidente."

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_stock_picking
msgid "Transfer"
msgstr "Transferir"
Loading
Loading