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_package_number: Migration to 17.0 #839

Merged
merged 18 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
1bf7d28
[ADD] delivery_package_number: New module
chienandalu Jul 20, 2020
b79ac11
Added translation using Weblate (Slovenian)
sysadminmatmoz Aug 11, 2020
ced8dc8
[IMP] delivery_package_number: black, isort, prettier
misern2 Sep 19, 2020
2dade86
[MIG] delivery_package_number: Migration to 13.0
misern2 Sep 19, 2020
8c305bb
[IMP] delivery_package_number: black, isort, prettier
hildickethan Jul 29, 2021
1b3dcdc
[14.0][MIG] delivery_package_number: Migration to 14.0
hildickethan Apr 15, 2021
0a78f20
[MIG] delivery_package_number: Migration to 15.0
victoralmau Aug 4, 2022
e6b19e5
[IMP] delivery_package_number: Hide Number of packages in Immediate T…
victoralmau Aug 12, 2022
3a69644
[MIG] delivery_package_number: Migration to 16.0
chienandalu Nov 9, 2022
6634d02
[FIX] delivery_package_number: Don't reset number on backorder
pedrobaeza Sep 7, 2023
ab961bf
[IMP] delivery_package_number: number of packages in the backorder wi…
Sep 22, 2023
af82d0a
[FIX] delivery_package_number: inhibit auto-create packets from base_…
Oct 2, 2023
7169bf2
[IMP] delivery_package_number: Allow set package numbers at confirm a…
CarlosRoca13 Nov 9, 2023
a070ef1
[IMP] delivery_package_number: Make compatible with multi pickings va…
sergio-teruel Dec 11, 2023
3070a38
[IMP] delivery_package_number: Ask only once for the number of packag…
sergio-teruel Mar 5, 2024
83ebd80
[FIX] delivery_package_number: download label
chienandalu Apr 16, 2024
e1d0e55
[IMP] delivery_package_number: pre-commit auto fixes
Josep-s73 Jun 24, 2024
db261ba
[MIG] delivery_package_number: Migration to 17.0
Josep-s73 Jun 24, 2024
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
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
Loading