Skip to content

Commit

Permalink
Merge PR #839 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 29, 2024
2 parents 8b09df5 + db261ba commit eef7866
Show file tree
Hide file tree
Showing 26 changed files with 1,577 additions and 0 deletions.
112 changes: 112 additions & 0 deletions delivery_package_number/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
============================
Stock Picking Package Number
============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ed46611ca917cfcfcc9384c072670a850ececadcfc52b66b2d5fb5f9a404f5b6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/17.0/delivery_package_number
: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_package_number
: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 recovers the number of packages field that was present in
previous versions of Odoo, that can be either be set manually by the
user, but also allows to be computed when the delivery packages flow is
used.

This field can be used by delivery carrier extensions that need such
info to rate the shipment, print the labels, etc.

**Table of contents**

.. contents::
:local:

Usage
=====

If no delivery packages are used:

1. Go to an open picking and click in the *Additional Info* tab.
2. In the *Delivey Information* section you'll find a **Number of
packages** field that you can edit.

If delivey packages are used:

1. The field will be recomputed depending on the delivery packages used
in the picking although can be edited at convenience later.

When the picking is confirmed, the user has the chance to change the
number of packages in the confirmation wizard.

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_package_number%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>`__:

- Pedro M. Baeza
- David Vidal
- Marçal Isern
- Carlos Roca

..
- `Sygel <https://www.sygel.es>`__:

..
- Ángel García de la Chica Herrera <[email protected]>

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_package_number>`_ 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_package_number/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
22 changes: 22 additions & 0 deletions delivery_package_number/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Picking Package Number",
"summary": "Set or compute number of packages for a picking",
"version": "17.0.1.0.0",
"category": "Delivery",
"website": "https://github.com/OCA/delivery-carrier",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"application": False,
"depends": ["stock_delivery"],
"data": [
"security/ir.model.access.csv",
"data/paperformat_data.xml",
"reports/report_package_number.xml",
"views/stock_picking_type_views.xml",
"views/stock_picking_views.xml",
"wizard/stock_number_package_validate_wiz_view.xml",
],
}
20 changes: 20 additions & 0 deletions delivery_package_number/data/paperformat_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="paperformat_number_of_packages_label" model="report.paperformat">
<field name="name">Number of package label</field>
<field name="default" eval="True" />
<field name="format">custom</field>
<field name="page_width">100</field>
<field name="page_height">50</field>
<field name="orientation">Portrait</field>
<field name="margin_top">0</field>
<field name="margin_bottom">0</field>
<field name="margin_left">5</field>
<field name="margin_right">5</field>
<field name="header_line" eval="False" />
<field name="header_spacing">0</field>
<field name="dpi">150</field>
</record>

</odoo>
164 changes: 164 additions & 0 deletions delivery_package_number/i18n/delivery_package_number.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * delivery_package_number
#
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_package_number
#: model_terms:ir.ui.view,arch_db:delivery_package_number.view_number_package_validate
msgid "Apply"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_backorder_confirmation__ask_number_of_packages
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_immediate_transfer__ask_number_of_packages
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_mixin__ask_number_of_packages
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__ask_number_of_packages
msgid "Ask Number Of Packages"
msgstr ""

#. module: delivery_package_number
#: model:ir.model,name:delivery_package_number.model_stock_backorder_confirmation
msgid "Backorder Confirmation"
msgstr ""

#. module: delivery_package_number
#: model_terms:ir.ui.view,arch_db:delivery_package_number.view_number_package_validate
msgid "Cancel"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__create_uid
msgid "Created by"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__create_date
msgid "Created on"
msgstr ""

#. module: delivery_package_number
#: model:ir.actions.report,name:delivery_package_number.action_delivery_package_number_report
msgid "Delivery package number"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__display_name
msgid "Display Name"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_picking_type__force_set_number_of_packages
msgid "Force Set Number Of Packages"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__id
msgid "ID"
msgstr ""

#. module: delivery_package_number
#: model:ir.model,name:delivery_package_number.model_stock_immediate_transfer
msgid "Immediate Transfer"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard____last_update
msgid "Last Modified on"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__write_uid
msgid "Last Updated by"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__write_date
msgid "Last Updated on"
msgstr ""

#. module: delivery_package_number
#: model:ir.model,name:delivery_package_number.model_stock_number_package_mixin
msgid "Mixin to set number of packages"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_backorder_confirmation__number_of_packages
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_immediate_transfer__number_of_packages
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_mixin__number_of_packages
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__number_of_packages
msgid "Number Of Packages"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_picking__number_of_packages
msgid "Number of Packages"
msgstr ""

#. module: delivery_package_number
#: model_terms:ir.ui.view,arch_db:delivery_package_number.view_picking_type_form
msgid "Number of packages"
msgstr ""

#. module: delivery_package_number
#: model_terms:ir.ui.view,arch_db:delivery_package_number.delivery_package_number_document
msgid "Number of packages:"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__pick_ids
msgid "Pick"
msgstr ""

#. module: delivery_package_number
#: model:ir.model,name:delivery_package_number.model_stock_picking_type
msgid "Picking Type"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_backorder_confirmation__print_package_label
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_immediate_transfer__print_package_label
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_mixin__print_package_label
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_number_package_validate_wizard__print_package_label
msgid "Print Package Label"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,field_description:delivery_package_number.field_stock_picking_type__report_number_of_packages
msgid "Report Number Of Packages"
msgstr ""

#. module: delivery_package_number
#. odoo-python
#: code:addons/delivery_package_number/models/stock_picking.py:0
#: model_terms:ir.ui.view,arch_db:delivery_package_number.view_number_package_validate
#, python-format
msgid "Set number of packages"
msgstr ""

#. module: delivery_package_number
#: model:ir.model.fields,help:delivery_package_number.field_stock_backorder_confirmation__number_of_packages
#: model:ir.model.fields,help:delivery_package_number.field_stock_immediate_transfer__number_of_packages
#: model:ir.model.fields,help:delivery_package_number.field_stock_number_package_mixin__number_of_packages
#: model:ir.model.fields,help:delivery_package_number.field_stock_number_package_validate_wizard__number_of_packages
msgid "Set the number of packages for this picking(s)"
msgstr ""

#. module: delivery_package_number
#: model:ir.model,name:delivery_package_number.model_stock_picking
msgid "Transfer"
msgstr ""

#. module: delivery_package_number
#: model:ir.model,name:delivery_package_number.model_stock_number_package_validate_wizard
msgid "Wizard to force set number of pickings when validate"
msgstr ""
Loading

0 comments on commit eef7866

Please sign in to comment.