Skip to content

Commit

Permalink
Translated using Weblate (Italian)
Browse files Browse the repository at this point in the history
Currently translated at 100.0% (14 of 14 strings)

Translation: delivery-carrier-16.0/delivery-carrier-16.0-delivery_purchase
Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_purchase/it/
  • Loading branch information
mymage authored and Sandeep committed Sep 13, 2024
1 parent 0803fbb commit e8a49a0
Show file tree
Hide file tree
Showing 15 changed files with 134 additions and 107 deletions.
63 changes: 34 additions & 29 deletions delivery_purchase/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ Delivery costs in purchases
: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/16.0/delivery_purchase
: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-16-0/delivery-carrier-16-0-delivery_purchase
: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=16.0
: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.
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.
It reverses destinations in delivery pricelists to use them as sources
when applying the delivery method to purchases.

**Table of contents**

Expand All @@ -44,52 +44,57 @@ Usage

To use this module, you need to:

#. Go to *Purchase > Orders > Purchase Orders* and create a new Purchase Order.
#. 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.
#. Confirm the purchase order.
#. Go to the linked 'Receipt' by clicking on 'Receipt' smart-button and
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.
#. 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.
#. It is possible to change the shipping cost in picking.
#. The shipping cost will appear in an internal note created
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.
#. A purchase order line will have been created for the cost of picking.
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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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>`_:
- `Tecnativa <https://www.tecnativa.com>`__:

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

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

- Sandeep J

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -101,6 +106,6 @@ 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/16.0/delivery_purchase>`_ project on GitHub.
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.
4 changes: 2 additions & 2 deletions delivery_purchase/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

{
"name": "Delivery costs in purchases",
"version": "16.0.1.1.0",
"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", "delivery"],
"depends": ["purchase", "stock_delivery"],
"data": ["views/purchase_order_view.xml", "views/stock_picking_view.xml"],
}
31 changes: 18 additions & 13 deletions delivery_purchase/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,67 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"PO-Revision-Date: 2024-08-21 16:06+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: delivery_purchase
#: model:ir.model.fields,field_description:delivery_purchase.field_purchase_order__carrier_id
msgid "Delivery Method"
msgstr ""
msgstr "Metodo di consegna"

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

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

#. 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 ""
"Errore: questo metodo di consegna non è disponibile per questo indirizzo."

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

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

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

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

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

#. module: delivery_purchase
#. odoo-python
Expand All @@ -73,27 +76,29 @@ 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 ""
"Spedizione inviata al corriere %(carrier_name)s per spedire con tracciamento "
"numero %(tracking_ref)s<br/>Costo: %(carrier_price)s %(currency_name)s"

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

#. 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 ""
msgstr "La spedizione è gratuita poiché il valore dell'ordine 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 ""
msgstr "Non c'è una regola di consegna corrispondente."

#. module: delivery_purchase
#: model:ir.model,name:delivery_purchase.model_stock_picking
msgid "Transfer"
msgstr ""
msgstr "Trasferimento"
4 changes: 2 additions & 2 deletions delivery_purchase/models/delivery_carrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def purchase_base_on_rule_rate_shipment(self, order):
return {

Check warning on line 94 in delivery_purchase/models/delivery_carrier.py

View check run for this annotation

Codecov / codecov/patch

delivery_purchase/models/delivery_carrier.py#L93-L94

Added lines #L93 - L94 were not covered by tests
"success": False,
"price": 0.0,
"error_message": e.name,
"error_message": e.args[0],
"warning_message": False,
}
if order.company_id.currency_id.id != order.currency_id.id:
Expand Down Expand Up @@ -144,7 +144,7 @@ def _purchase_get_price_available(self, order):
order = order.sudo()
weight = volume = quantity = 0
for line in order.order_line.filtered(
lambda l: l.state != "cancel" and bool(l.product_id)
lambda ln: ln.state != "cancel" and bool(ln.product_id)
):
qty = line.product_uom._compute_quantity(
line.product_uom_qty, line.product_id.uom_id
Expand Down
17 changes: 12 additions & 5 deletions delivery_purchase/models/stock_picking.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from markupsafe import Markup

from odoo import _, models


Expand Down Expand Up @@ -29,13 +31,18 @@ def purchase_send_to_shipper(self):
if res["tracking_number"]:
self.carrier_tracking_ref = res["tracking_number"]

Check warning on line 32 in delivery_purchase/models/stock_picking.py

View check run for this annotation

Codecov / codecov/patch

delivery_purchase/models/stock_picking.py#L32

Added line #L32 was not covered by tests
order_currency = self.purchase_id.currency_id or self.company_id.currency_id
msg = _(
"Shipment sent to carrier %(carrier_name)s for shipping with tracking "
"number %(tracking_ref)s<br/>Cost: %(carrier_price)s %(currency_name)s"
) % (
{
msg = (
_(
"Shipment sent to carrier %(carrier_name)s for shipping with \
tracking number %(tracking_ref)s"
)
% {
"carrier_name": self.carrier_id.name,
"tracking_ref": self.carrier_tracking_ref,
}
+ Markup("<br/>")
+ _("Cost: %(carrier_price)s %(currency_name)s")
% {
"carrier_price": "%.2f" % self.carrier_price,
"currency_name": order_currency.name,
}
Expand Down
3 changes: 3 additions & 0 deletions delivery_purchase/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
8 changes: 8 additions & 0 deletions delivery_purchase/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- [Tecnativa](https://www.tecnativa.com):
- Ernesto Tejeda
- Pedro M. Baeza
- Vicent Cubells
- Carolina Fernandez

- [Sodexis](https://www.sodexis.com):
- Sandeep J
6 changes: 0 additions & 6 deletions delivery_purchase/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This module allows to use delivery methods defined in *delivery* module to
calculate purchase delivery costs.
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.
It reverses destinations in delivery pricelists to use them as sources
when applying the delivery method to purchases.
19 changes: 19 additions & 0 deletions delivery_purchase/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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.
17 changes: 0 additions & 17 deletions delivery_purchase/readme/USAGE.rst

This file was deleted.

Loading

0 comments on commit e8a49a0

Please sign in to comment.