-
-
Notifications
You must be signed in to change notification settings - Fork 385
[18.0][MIG] delivery_carrier_label_batch: Migration to 18.0 #984
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
Open
yankinmax
wants to merge
66
commits into
OCA:18.0
Choose a base branch
from
camptocamp:18.0-mig-delivery_carrier_label_batch
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
1810624
[9.0] port module delivery_carrier_label_dispatch
yvaucher c632b7a
Update translations
yvaucher 360feea
Cannot update options due to limitation of api 8.0
yvaucher c7b5c73
Use IDs instead of recordset for write
mdietrichc2c de8997f
rename field tracking_id to package_id
guewen 04b520a
Remove self.pool + add correct attachment name
mdietrichc2c 1c1246c
View changed in batch_stock_picking
mdietrichc2c d2511fd
Fix condition
guewen d421313
Thread label generation to make it faster
guewen f70b4e9
Fix onchange for batch picking
mdietrichc2c 615472f
Correct error treatment
mdietrichc2c bf132da
Fix empty pdf issue
guewen 2f7eea6
Add pick/pack info to all exceptions
mdietrichc2c c257463
e.message deprecated from 2.6
mdietrichc2c dd16645
Allow to print labels on operations without product
guewen ea807a0
Fix concurrent error on batch labels
guewen debd445
Do not regenerate existing labels unless forced + pylint fix
80ff2cf
[12.0][MIG] delivery_carrier_label_batch
TDu 1b16d47
fixes for cahnges in migration of base_deliver_carrier_label (#1)
tschanzt 5c55928
[9.0][ADD] support of zpl labels
c449c46
[IMP] delivery_carrier_label_batch: add support for ZPL labels
sebalix 39aa85f
Fix tests
b90b13b
add missing _description
c1029b4
[IMP] delivery_carrier_label_batch: ZPL2 single images
grindtildeath 83f7a2e
Apply suggestions from code review
grindtildeath 41671b6
Fixes after reviews
grindtildeath 49741d3
[IMP][ZPL] option to not merge Zpl file (printer failed to print to b…
vrenaville 2f451cf
[IMP] label name from batch tracking zpl
vrenaville 6916468
Add a check that all picking have packs before generating them.
yvaucher 4484887
label batch: Enforce use of packages
yvaucher 48b5996
Fix rst format, not an inline emphasis
yvaucher a9a51a8
[UPD] Update delivery_carrier_label_batch.pot
oca-travis 74c508e
[UPD] README.rst
OCA-git-bot 07897ee
[ADD] icon.png
OCA-git-bot 74edfb7
Remove broken icon
yvaucher cac4e58
delivery_carrier_label_batch 12.0.1.0.1
OCA-git-bot 75a9e3f
Update translation files
oca-transbot 1982ec3
[IMP] delivery_carrier_label_batch: black, isort, prettier
kv1612 46f12d7
[MIG] delivery_carrier_label_batch: Migration to 14.0
kv1612 df2db7d
[UPD] Update delivery_carrier_label_batch.pot
oca-travis 2fb9d8a
[UPD] README.rst
OCA-git-bot 53a25f1
[IMP] update dotfiles [ci skip]
OCA-git-bot 945c763
FIX delivery_carrier_label_batch invalid field
be2cae5
delivery_carrier_label_batch: Allow testing labels generation
grindtildeath eab685f
Apply suggestions from code review
grindtildeath 8024f50
delivery_carrier_label_batch: empty cache once threads finished
sebalix 4694fc2
delivery_carrier_label_batch 14.0.1.0.1
OCA-git-bot 694672d
delivery_carrier_label_batch 14.0.1.0.2
OCA-git-bot f3d1f1b
[IMP] delivery_carrier_label_batch: tracking reference purge
7c6525b
delivery_carrier_label_batch 14.0.1.1.0
OCA-git-bot 6cc95a6
[UPD] README.rst
OCA-git-bot 5c184d4
Update translation files
weblate 9f2de13
[FIX] *: Linter fixes
pedrobaeza 125aac6
[BOT] post-merge updates
OCA-git-bot 757b01d
Added translation using Weblate (Spanish)
Ivorra78 42a3ae8
Translated using Weblate (Spanish)
Ivorra78 3e403b6
Translated using Weblate (Spanish)
Ivorra78 15f8e02
Added translation using Weblate (Italian)
mymage f672e40
[IMP] delivery_carrier_label_batch: pre-commit auto fixes
yankinmax ba8d54b
[MIG] delivery_carrier_label_batch: Migration to 18.0
yankinmax 18449d5
[18.0] [FIX] stock_batch_picking.py: remove line updating `self.carri…
Camille0907 f0f852e
[18.0] [FIX] delivery_carrier_label_batch: replace ``UserError.name``…
Camille0907 99c171c
DON'T MERGE test requirements
yankinmax 562ddab
[18.0] [FIX] delivery_carrier_label_batch: make ``_get_packs`` method…
Camille0907 8d793e9
delivery_carrier_label_batch: fix concurrent update
a49a551
[IMP] delivery_carrier_batch: limit number of threads
gurneyalex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
=========================================== | ||
Carrier labels - Stock Batch Picking (link) | ||
=========================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:432ee88bf9f8309825d23c180f9076b7333338285c168442b978018d466fde9e | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |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/18.0/delivery_carrier_label_batch | ||
: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-18-0/delivery-carrier-18-0-delivery_carrier_label_batch | ||
: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=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds a wizard on picking batch to generate the labels of the | ||
packs. The labels are merged in one PDF file. | ||
|
||
If you want multiple labels for one picking, all the moves should have | ||
been put in a pack before the labels can be printed. | ||
|
||
If you don't define your pack it will be considered a picking is a | ||
single pack. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
If using ZPL2 file format, multiple \*.zpl can be merged either "as is" | ||
or with "single image definition" to spare file size. Single image | ||
definition can be used by defining ir.config_parameter with name | ||
zpl2.assembler.single.images to True. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
1. Go to... | ||
|
||
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_carrier_label_batch%0Aversion:%2018.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 | ||
------- | ||
|
||
* Camptocamp | ||
|
||
Contributors | ||
------------ | ||
|
||
- Yannick Vaucher <[email protected]> | ||
|
||
- `Trobz <https://trobz.com>`__: | ||
|
||
- Khoi Vo <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
The migration of this module from 12.0 to 14.0 was financially supported | ||
by Camptocamp | ||
|
||
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/18.0/delivery_carrier_label_batch>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import wizard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2013-2019 Camptocamp SA | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) | ||
{ | ||
"name": "Carrier labels - Stock Batch Picking (link)", | ||
"version": "18.0.1.0.0", | ||
"author": "Camptocamp,Odoo Community Association (OCA)", | ||
"maintainer": "Camptocamp", | ||
"category": "Carrier", | ||
"complexity": "normal", | ||
"depends": [ | ||
# Odoo/core | ||
"stock_delivery", | ||
# OCA/delivery-carrier | ||
"delivery_carrier_option", | ||
"delivery_carrier_shipping_label", | ||
"delivery_carrier_package_info", | ||
# OCA/stock-logistics-workflow | ||
"stock_picking_batch_extended", | ||
], | ||
"website": "https://github.com/OCA/delivery-carrier", | ||
"data": [ | ||
# Security | ||
"security/ir.model.access.csv", | ||
# Data | ||
"data/ir.config_parameter.xml", | ||
# Views | ||
"views/stock_batch_picking.xml", | ||
# Wizard | ||
"wizard/generate_labels_view.xml", | ||
"wizard/apply_carrier_view.xml", | ||
], | ||
"installable": True, | ||
"auto_install": True, | ||
"license": "AGPL-3", | ||
"application": False, | ||
"external_dependencies": { | ||
"python": ["PyPDF2"], | ||
}, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo noupdate="1"> | ||
<record | ||
forcecreate="True" | ||
id="zpl2_assembler_single_images" | ||
model="ir.config_parameter" | ||
> | ||
<field name="key">zpl2.assembler.single.images</field> | ||
<field name="value">False</field> | ||
</record> | ||
<record forcecreate="True" id="zpl2_batch_merge" model="ir.config_parameter"> | ||
<field name="key">zpl2.batch.merge</field> | ||
<field name="value">False</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.