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] base_delivery_carrier_label #807

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
08672b6
[ADD] base_delivery_carrier_label portage of Akretion delivery_shippi…
yvaucher Nov 26, 2013
ce2cec4
[CHG] pep-8 and pep-257, return eagerly in option_ids_change to avoid…
guewen Nov 27, 2013
ee58ebf
[CHG] contributors
yvaucher Nov 27, 2013
373ba95
[DEL] Remove unused views
jgrandguillaume Dec 10, 2013
e0a2bc7
[IMP] add tracking_id on shipping label to be able to create a label …
yvaucher Dec 17, 2013
b169f30
[FIX] load the ir.model.access.csv file
guewen Dec 23, 2013
42925ae
[FIX] Replace NotImplemented exception which was wrongly interpreted …
yvaucher Jan 9, 2014
248c7e4
[IMP] add a menu entry 'Carriers' in settings
bealdav Feb 18, 2014
13766bb
[ADD] an optional parameter 'tracking_ids' so we can decide to genera…
guewen Feb 19, 2014
afd4033
base_delivery_carrier_label - Improve carrier type selection inheritance
yvaucher Feb 26, 2014
3566f29
Launchpad automatic translations update.
Mar 1, 2014
31c55db
[IMP] add common view action to use by module install
bealdav Mar 2, 2014
00a6126
When tracking_ids is defined, generate one default label per tracking id
yvaucher Mar 12, 2014
ab5e3ce
[IMP] complete translation and fix view
bealdav Mar 12, 2014
b5c4ffe
Launchpad automatic translations update.
Mar 21, 2014
eeb2224
[IMP] add _customize_sender_address method
bealdav May 28, 2014
46bb584
set installable to false
yvaucher Jul 2, 2014
bc76a7e
[REF] remove stock.picking.in and .out
bealdav Oct 28, 2014
8c50b8c
[FIX] add explicitely attachment_id (previously included by orm)
alexis-via Dec 2, 2014
959d2dc
[FIX] weight field type
bealdav Dec 3, 2014
9f3d8ed
Add weight in form view of stock.quant.package
Dec 3, 2014
3791a1f
Migrate to new API
guewen Dec 5, 2014
93f0cac
Remove _order on stock.quant.packages, as asked by Guewen
Dec 9, 2014
ec1f94b
[FIX] writing package_id field in shipping.label
bealdav Dec 13, 2014
8e15c32
[Usability] Better name_get on stock.quant.package
Jan 13, 2015
47a2b85
Allow to generate labels when we moved an entire package
guewen Jan 30, 2015
b39f4a1
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
9a4b097
[PEP8]
yvaucher Mar 2, 2015
de58c4f
add and generate initial german translations
rschnapka Jan 5, 2015
47d1b56
[NEW] Added spanish translation
cubells Feb 11, 2015
48f127a
Do not return duplicate packages when several moves have the same one
guewen Jun 9, 2015
c0ceb28
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
96a627a
[IMP] add get_weight() to quant package
guewen Nov 19, 2015
3c0f5b8
[IMP] put set_pack_weight() in picking
Nov 19, 2015
2f7670e
[IMP] put _check_existing_shipping_label() in picking
bealdav Nov 19, 2015
4139892
refactore stock.get_weight()
hparfr Mar 22, 2016
b9d7666
[PORT] base_delivery_carrier_label port to 9.0
yvaucher Oct 15, 2015
3c3f3b2
Rename field type to carrier_type in delivery.carrier
Sep 26, 2016
b39d9e2
WIP migraciont label
angelmoya Mar 29, 2017
1999f1b
ADD manifest and MIG 10
Nov 2, 2015
07ca79a
FIX manifest wizard as transient model
angelmoya Apr 11, 2017
3460af2
Use correct syntax to add options with onchange on stock picking
mdietrichc2c Apr 26, 2017
61a6f80
[FIX] base_delivery_carrier_label: Fix security.
May 26, 2017
47ea10b
[IMP] base_delivery_carrier_label: Add quant package tracking URI
lasley Nov 3, 2017
c0dbc03
[MIG] 11.0 base_delivery_carrier_label
hugosantosred Jan 17, 2018
8e17500
[IMP] Improve migration to 11.0
asaunier Apr 11, 2018
f88cdc6
[FIX] Remove occurences of carrier type
grindtildeath May 29, 2018
2b24b74
Add oldname to delivery_type
grindtildeath May 29, 2018
997f294
[MIG] base_delivery_carrier_label: Migration to 12.0
Timo17100-c2c May 3, 2019
96302ef
REFactor base_deliv_carr_label: always use package
bealdav Aug 20, 2019
fa212f3
IMP add view to carrier.account
bealdav Aug 29, 2019
375e59a
Remove duplicate entry in fa.po
sbidoul Aug 30, 2019
447ab88
[FIX] Wait data encoded in base64 / write tracking number on package
florian-dacosta Sep 5, 2019
fddcc40
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 8, 2019
00b4ef9
[IMP] Add delivery type on carrier acount to be able to link easily a…
florian-dacosta Oct 23, 2019
1e9a266
[IMP] base_delivery_carrier_label: black, isort
ps-tubtim Mar 18, 2020
caba55a
[MIG] base_delivery_carier_label: Migration to 13.0
ps-tubtim Mar 20, 2020
a72fc3f
[UPD] Update base_delivery_carrier_label.pot
oca-travis Oct 21, 2020
2353efb
Update translation files
oca-transbot Oct 23, 2020
b5b64cf
extract delivery_carrier_info from base_delivery_carrier_label
sebastienbeau Aug 30, 2020
e4135b0
[ADD] generic test case for labels
hbrunn Sep 24, 2020
d8318fb
[ADD] handle labels created during shipping if any
hbrunn Sep 24, 2020
6615053
[IMP] determine generate label button's visibility with a computed field
hbrunn Sep 24, 2020
7aef5ff
[ADD] carrier.account#sequence
hbrunn Sep 24, 2020
3dd2f08
[ADD] test helper functions
hbrunn Sep 24, 2020
74adf97
[ADD] active flag for options
hbrunn Sep 10, 2020
a04e42c
FIX base_deliv_label: use valid qty to compute weight of move.line
bealdav Sep 10, 2020
ffc63e9
[FIX] fix migration
sebastienbeau Nov 5, 2020
ae3639c
[IMP] base_delivery_carrier_label: black, isort, prettier
sebastienbeau Nov 5, 2020
0b299ce
[MIG] migration to V14
sebastienbeau Nov 5, 2020
081c8f7
Fix common carrier label tests
florian-dacosta Dec 8, 2020
372ec0a
Refactore base_delivery_carrier_label to improve compatibility with n…
florian-dacosta Mar 9, 2021
58ca379
Fix test : show_label_button does not exist anymore
florian-dacosta Mar 25, 2021
2a0b929
Fix docstrings
florian-dacosta Apr 21, 2021
b5b9c83
[UPD] Update base_delivery_carrier_label.pot
oca-travis May 1, 2021
2d30146
[UPD] README.rst
OCA-git-bot May 1, 2021
9bbe2b3
Allow to have multiple carrier accounts for a same delivery type and …
florian-dacosta Jun 7, 2021
4050ac4
[UPD] Update base_delivery_carrier_label.pot
oca-travis Sep 21, 2021
63c7ab8
base_delivery_carrier_label 14.0.1.1.0
OCA-git-bot Sep 21, 2021
040dab7
Update translation files
oca-transbot Sep 21, 2021
b17bcf7
Fix carrier account intercompany security rule
florian-dacosta Dec 3, 2021
19d791d
[IMP] base_delivery_carrier_label: allow bypassing default…
hailangvn Jan 19, 2022
34d2eb3
[14.0] base_delivery_carrier_label: add check when no carrier_id assi…
Jan 10, 2022
4f6d366
Translated using Weblate (French)
Yvesldff Jan 26, 2022
a796f48
[RFR] label case: allow to override transfer in setup
StefanRijnhart Apr 2, 2021
16de0b2
[RFR] Extract Test classes from Case classes for easier overriding
StefanRijnhart Apr 2, 2021
db5bac9
[12.0][RFR] base_delivery_carrier_label: show options as tags
StefanRijnhart Jun 12, 2021
ae1fb64
[FIX] delivery.carrier.option form view
astirpe Jun 18, 2021
4b5a0a1
[FIX] delivery.carrier.template.option form view
astirpe Jul 12, 2021
e47093a
base_delivery_carrier_label 14.0.1.1.1
OCA-git-bot Mar 14, 2022
5937377
[UPD] Update base_delivery_carrier_label.pot
oca-travis Mar 29, 2022
c15f097
base_delivery_carrier_label 14.0.1.2.0
OCA-git-bot Mar 29, 2022
22c9a19
Update translation files
oca-transbot Mar 29, 2022
ca929a2
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
eea1596
base_delivery_carrier_label 14.0.1.2.1
OCA-git-bot Apr 4, 2022
9bfe9ec
Translated using Weblate (Italian)
francesco-ooops Apr 20, 2022
dfa86c7
Translated using Weblate (Italian)
primes2h Apr 20, 2022
12326de
base_delivery_carrier: Fix alternative_send_shipping return value
grindtildeath Apr 22, 2022
40700d5
base_delivery_carrier_label 14.0.1.2.2
OCA-git-bot May 6, 2022
e1702ba
[FIX] base_delivery_carrier_label: avoid duplicating carrier_id
hailangvn May 21, 2022
4655b02
base_delivery_carrier_label 14.0.1.3.0
OCA-git-bot May 27, 2022
101e0e8
[IMP] base_delivery_carrier_label: black, isort, prettier
Nov 16, 2022
77fcfb0
[MIG] base_delivery_carrier_label: Migration to 15.0
Nov 16, 2022
ea80ff4
[16.0][MIG] Extract delivery_carrier_account from base_delivery_carri…
florian-dacosta Nov 29, 2022
e732704
[UPD] Update base_delivery_carrier_label.pot
Dec 19, 2022
8188510
[UPD] README.rst
OCA-git-bot Dec 19, 2022
214c2c8
Update translation files
weblate Dec 19, 2022
2b77c47
Translated using Weblate (Italian)
mymage Mar 23, 2023
d3a4bfc
Translated using Weblate (Slovenian)
sysadminmatmoz Mar 31, 2023
20cda69
[IMP] base_delivery_carrier_label : write the parcel tracking uri if …
florian-dacosta Jun 8, 2023
8ca7441
[IMP] base_delivery_carrier_label : add test about package tracking r…
florian-dacosta Jun 15, 2023
429290d
base_delivery_carrier_label 16.0.1.1.0
OCA-git-bot Jul 4, 2023
415f80c
Translated using Weblate (Spanish)
Ivorra78 Aug 2, 2023
72e7b62
[UPD] README.rst
OCA-git-bot Sep 3, 2023
0c72047
Update translation files
weblate Oct 9, 2023
0236071
[IMP] improve logging
sbidoul Dec 20, 2023
0ca7d05
[BOT] post-merge updates
OCA-git-bot Dec 21, 2023
87a6d6b
Translated using Weblate (French)
kbentaleb Jan 8, 2024
5c03fff
Translated using Weblate (Italian)
mymage Feb 12, 2024
b434da1
[IMP] : pre-commit auto fixes
May 6, 2024
45be28c
[MIG] base_delivery_carrier_label: Migration to 17.0
May 6, 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
120 changes: 120 additions & 0 deletions base_delivery_carrier_label/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
==============================
Base module for carrier labels
==============================

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

.. |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/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-17-0/delivery-carrier-17-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=17.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:%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
-------

* 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>
- `Binhex <https://binhex.cloud//com>`__:

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

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/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": "17.0.1.1.1",
"author": "Camptocamp,Akretion,Odoo Community Association (OCA)",
"maintainer": "Camptocamp",
"category": "Delivery",
"depends": [
"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