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

[18.0][MIG] base_delivery_carrier_label: Migration to 18.0 #935

Draft
wants to merge 114 commits into
base: 18.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
e50b1fe
[ADD] base_delivery_carrier_label portage of Akretion delivery_shippi…
yvaucher Nov 26, 2013
3faa90f
[CHG] pep-8 and pep-257, return eagerly in option_ids_change to avoid…
guewen Nov 27, 2013
1f43342
[CHG] contributors
yvaucher Nov 27, 2013
98e07b8
[DEL] Remove unused views
jgrandguillaume Dec 10, 2013
d59a98e
[IMP] add tracking_id on shipping label to be able to create a label …
yvaucher Dec 17, 2013
fc09feb
[FIX] load the ir.model.access.csv file
guewen Dec 23, 2013
0c9e1ce
[FIX] Replace NotImplemented exception which was wrongly interpreted …
yvaucher Jan 9, 2014
28370f4
[IMP] add a menu entry 'Carriers' in settings
bealdav Feb 18, 2014
59ccea1
[ADD] an optional parameter 'tracking_ids' so we can decide to genera…
guewen Feb 19, 2014
3705088
base_delivery_carrier_label - Improve carrier type selection inheritance
yvaucher Feb 26, 2014
a0081b2
Launchpad automatic translations update.
Mar 1, 2014
cf5dcde
[IMP] add common view action to use by module install
bealdav Mar 2, 2014
a12a30a
When tracking_ids is defined, generate one default label per tracking id
yvaucher Mar 12, 2014
57941f9
[IMP] complete translation and fix view
bealdav Mar 12, 2014
32333b3
Launchpad automatic translations update.
Mar 21, 2014
cf83c51
[IMP] add _customize_sender_address method
bealdav May 28, 2014
ae027ba
set installable to false
yvaucher Jul 2, 2014
c14bd55
[REF] remove stock.picking.in and .out
bealdav Oct 28, 2014
775bd3c
[FIX] add explicitely attachment_id (previously included by orm)
alexis-via Dec 2, 2014
e530198
[FIX] weight field type
bealdav Dec 3, 2014
4840f7a
Add weight in form view of stock.quant.package
Dec 3, 2014
11c8539
Migrate to new API
guewen Dec 5, 2014
326785e
Remove _order on stock.quant.packages, as asked by Guewen
Dec 9, 2014
d62b2d0
[FIX] writing package_id field in shipping.label
bealdav Dec 13, 2014
b6c51cf
[Usability] Better name_get on stock.quant.package
Jan 13, 2015
d8c97b3
Allow to generate labels when we moved an entire package
guewen Jan 30, 2015
f5bb37a
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
d33e75b
[PEP8]
yvaucher Mar 2, 2015
d9cd036
add and generate initial german translations
rschnapka Jan 5, 2015
03402bc
[NEW] Added spanish translation
cubells Feb 11, 2015
90bcc8d
Do not return duplicate packages when several moves have the same one
guewen Jun 9, 2015
1d9a43c
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
bedf075
[IMP] add get_weight() to quant package
guewen Nov 19, 2015
1eb9ccf
[IMP] put set_pack_weight() in picking
Nov 19, 2015
0f52525
[IMP] put _check_existing_shipping_label() in picking
bealdav Nov 19, 2015
523d951
refactore stock.get_weight()
hparfr Mar 22, 2016
8eb764a
[PORT] base_delivery_carrier_label port to 9.0
yvaucher Oct 15, 2015
9139cd5
Rename field type to carrier_type in delivery.carrier
Sep 26, 2016
cc0b9c7
WIP migraciont label
angelmoya Mar 29, 2017
f9f6e76
ADD manifest and MIG 10
Nov 2, 2015
427fab1
FIX manifest wizard as transient model
angelmoya Apr 11, 2017
c3e2192
Use correct syntax to add options with onchange on stock picking
mdietrichc2c Apr 26, 2017
3f70e9d
[FIX] base_delivery_carrier_label: Fix security.
May 26, 2017
24cdff0
[IMP] base_delivery_carrier_label: Add quant package tracking URI
lasley Nov 3, 2017
1ebc4a8
[MIG] 11.0 base_delivery_carrier_label
hugosantosred Jan 17, 2018
62d67c8
[IMP] Improve migration to 11.0
asaunier Apr 11, 2018
5b8f17c
[FIX] Remove occurences of carrier type
grindtildeath May 29, 2018
65ebe7e
Add oldname to delivery_type
grindtildeath May 29, 2018
3d39f4d
[MIG] base_delivery_carrier_label: Migration to 12.0
Timo17100-c2c May 3, 2019
f1c067c
REFactor base_deliv_carr_label: always use package
bealdav Aug 20, 2019
20c2261
IMP add view to carrier.account
bealdav Aug 29, 2019
5fb9c49
Remove duplicate entry in fa.po
sbidoul Aug 30, 2019
e7d0395
[FIX] Wait data encoded in base64 / write tracking number on package
florian-dacosta Sep 5, 2019
210af50
[IMP] Add delivery type on carrier acount to be able to link easily a…
florian-dacosta Oct 23, 2019
57cfe16
[IMP] base_delivery_carrier_label: black, isort
ps-tubtim Mar 18, 2020
e7708fc
[MIG] base_delivery_carier_label: Migration to 13.0
ps-tubtim Mar 20, 2020
cc1b793
extract delivery_carrier_info from base_delivery_carrier_label
sebastienbeau Aug 30, 2020
1d61403
[ADD] generic test case for labels
hbrunn Sep 24, 2020
67e1144
[ADD] handle labels created during shipping if any
hbrunn Sep 24, 2020
2f4d92e
[IMP] determine generate label button's visibility with a computed field
hbrunn Sep 24, 2020
62219b7
[ADD] carrier.account#sequence
hbrunn Sep 24, 2020
0dd204d
[ADD] test helper functions
hbrunn Sep 24, 2020
d3d7581
[ADD] active flag for options
hbrunn Sep 10, 2020
1b53731
FIX base_deliv_label: use valid qty to compute weight of move.line
bealdav Sep 10, 2020
48555d0
[FIX] fix migration
sebastienbeau Nov 5, 2020
c2c03a0
[IMP] base_delivery_carrier_label: black, isort, prettier
sebastienbeau Nov 5, 2020
2a67d97
[MIG] migration to V14
sebastienbeau Nov 5, 2020
455ba04
Fix common carrier label tests
florian-dacosta Dec 8, 2020
3e66662
Refactore base_delivery_carrier_label to improve compatibility with n…
florian-dacosta Mar 9, 2021
d026f5c
Fix test : show_label_button does not exist anymore
florian-dacosta Mar 25, 2021
1db8f80
Fix docstrings
florian-dacosta Apr 21, 2021
d9e4535
Allow to have multiple carrier accounts for a same delivery type and …
florian-dacosta Jun 7, 2021
4aed0a3
base_delivery_carrier_label 14.0.1.1.0
OCA-git-bot Sep 21, 2021
4d7de18
Fix carrier account intercompany security rule
florian-dacosta Dec 3, 2021
5edd37f
[IMP] base_delivery_carrier_label: allow bypassing default…
hailangvn Jan 19, 2022
7aa038f
[14.0] base_delivery_carrier_label: add check when no carrier_id assi…
Jan 10, 2022
9fd75f7
[RFR] label case: allow to override transfer in setup
StefanRijnhart Apr 2, 2021
be32ca0
[RFR] Extract Test classes from Case classes for easier overriding
StefanRijnhart Apr 2, 2021
5ab7457
[12.0][RFR] base_delivery_carrier_label: show options as tags
StefanRijnhart Jun 12, 2021
1f5853f
[FIX] delivery.carrier.option form view
astirpe Jun 18, 2021
dc6d7ac
[FIX] delivery.carrier.template.option form view
astirpe Jul 12, 2021
09ef683
base_delivery_carrier_label 14.0.1.1.1
OCA-git-bot Mar 14, 2022
89e3542
base_delivery_carrier_label 14.0.1.2.0
OCA-git-bot Mar 29, 2022
812bbb2
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
60d348a
base_delivery_carrier_label 14.0.1.2.1
OCA-git-bot Apr 4, 2022
af33afb
base_delivery_carrier: Fix alternative_send_shipping return value
grindtildeath Apr 22, 2022
a0788f4
base_delivery_carrier_label 14.0.1.2.2
OCA-git-bot May 6, 2022
2c907a6
[FIX] base_delivery_carrier_label: avoid duplicating carrier_id
hailangvn May 21, 2022
15ab87d
base_delivery_carrier_label 14.0.1.3.0
OCA-git-bot May 27, 2022
40f8eab
[IMP] base_delivery_carrier_label: black, isort, prettier
Nov 16, 2022
b0e2118
[MIG] base_delivery_carrier_label: Migration to 15.0
Nov 16, 2022
50e4b73
[16.0][MIG] Extract delivery_carrier_account from base_delivery_carri…
florian-dacosta Nov 29, 2022
ee762c8
[IMP] base_delivery_carrier_label : write the parcel tracking uri if …
florian-dacosta Jun 8, 2023
33a621e
[IMP] base_delivery_carrier_label : add test about package tracking r…
florian-dacosta Jun 15, 2023
476f3d5
base_delivery_carrier_label 16.0.1.1.0
OCA-git-bot Jul 4, 2023
3178f92
[IMP] improve logging
sbidoul Dec 20, 2023
e83c05e
[BOT] post-merge updates
OCA-git-bot Dec 21, 2023
a1c20ca
[IMP] : pre-commit auto fixes
May 6, 2024
32ceca1
[17.0][MIG] base_delivery_carrier_label: Migration to 17.0
May 6, 2024
4eaa469
[UPD] Update base_delivery_carrier_label.pot
Jun 17, 2024
d68334a
[BOT] post-merge updates
OCA-git-bot Jun 17, 2024
c1b2866
Update translation files
weblate Jun 17, 2024
3b3531f
Translated using Weblate (Italian)
mymage Jun 18, 2024
ebd67c6
Translated using Weblate (Italian)
mymage Jul 1, 2024
7beeb18
[FIX] base_delivery_carrier_label: compute the weight by the product …
florian-dacosta Jul 9, 2024
f8a3697
[BOT] post-merge updates
OCA-git-bot Jul 9, 2024
e0f1003
[FIX] base_delibery_carrier_label test helper
gurneyalex Jul 17, 2024
64e1f39
[BOT] post-merge updates
OCA-git-bot Jul 17, 2024
59b17ab
[FIX] base_delivery_carrier_label test decorators
gurneyalex Jul 17, 2024
13bf2b2
[BOT] post-merge updates
OCA-git-bot Jul 18, 2024
183726b
Translated using Weblate (Italian)
mymage Sep 17, 2024
bb71fc5
[IMP] base_delivery_carrier_label: pre-commit auto fixes
Jan 16, 2025
53f1342
[18.0][MIG] base_delivery_carrier_label: Migration to 18.0
Jan 20, 2025
9583155
Add dependency file for tests purposes
Jan 20, 2025
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
123 changes: 123 additions & 0 deletions base_delivery_carrier_label/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
==============================
Base module for carrier labels
==============================

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

.. |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/base_delivery_carrier_label
: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-base_delivery_carrier_label
: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 some function and generic stuff to help for carrier
label generation. For example it adds the concept of option on carriers
that can differ depending on the picking or class to store carrier
accounts This module doesn't do anything by itself, it serves as a base
module for other carrier-specific modules.

**Table of contents**

.. contents::
:local:

Usage
=====

\*\* How does it works ? \*\*

In picking UI a button "Send to shipper" trigger label generation
calling send_to_shipper() in models/stock.picking.py

\*\* How to implement my own carrier ? \*\*

Define a method {carrier}_send_shipping() which is called by
\_send_shipping native method. Make it return a list of dict of this
form :

.. code:: python

{
"exact_price": price,
"tracking_number": 'number'
"labels": [{
"package_id": package_id,
"name": filename,
"datas": file_content (base64),
"file_type": extension,
"tracking_number": package_number
}]
}

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:%20base_delivery_carrier_label%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
* Akretion

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

- David BEAL <david.beal@akretion.com>
- Sébastien BEAU <sebastien.beau@akretion.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
- Alexis de Lattre <alexis.delattre@akretion.com>
- Angel Moya <angel.moya@pesol.es>
- Ismael Calvo <ismael.calvo@factorlibre.com>
- Dave Lasley <dave@laslabs.com>
- Timothée Ringeard <timothee.ringeard@camptocamp.com>
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
- Maksym Yankin <maksym.yankin@camptocamp.com>
- `Binhex <https://binhex.cloud//com>`__:

- David Luis Mora <d.luis@binhex.cloud>

- Italo Lopes <italo.lopes@camptocamp.com>

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/base_delivery_carrier_label>`_ 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 base_delivery_carrier_label/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
24 changes: 24 additions & 0 deletions base_delivery_carrier_label/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2013-2015 Yannick Vaucher (Camptocamp SA)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Base module for carrier labels",
"version": "18.0.1.0.3",
"author": "Camptocamp,Akretion,Odoo Community Association (OCA)",
"maintainer": "Camptocamp",
"category": "Delivery",
"depends": [
"stock_delivery",
"delivery_carrier_info",
],
"website": "https://github.com/OCA/delivery-carrier",
"data": [
"views/delivery.xml",
"views/stock.xml",
"views/res_config.xml",
"security/ir.model.access.csv",
"wizard/manifest_wizard_view.xml",
],
"installable": True,
"auto_install": False,
"license": "AGPL-3",
}
Loading
Loading