Skip to content

Commit

Permalink
Merge PR #846 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Jan 21, 2025
2 parents bfd9ef4 + 0b7e62d commit 684043b
Show file tree
Hide file tree
Showing 17 changed files with 734 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_delivery_package_type_domain/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
93 changes: 93 additions & 0 deletions stock_picking_delivery_package_type_domain/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
==========================================
Stock Picking Delivery Package Type Domain
==========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6fdfaf8638714c22c756a43e4be5e63d5dd63b1d71db39b968f00b7f1abd2f71
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/16.0/stock_picking_delivery_package_type_domain
: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-16-0/delivery-carrier-16-0-stock_picking_delivery_package_type_domain
: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=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to override the available package types during the
put in pack process related to a picking with a delivery carrier filled
in.

This module is a technical module, does nothing by its own and should be
overriden.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

In Odoo delivery module, you can choose the delivery package type if the
carrier is defined on the stock picking.

The filtered package types displayed are based on the package type
package_carrier_type field. That domain is set on the view and is not
extendable.

This is why this module changed the domain in view to a computed field.

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:%20stock_picking_delivery_package_type_domain%0Aversion:%2016.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
-------

* ACSONE SA/NV

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

- Denis Roussel [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/16.0/stock_picking_delivery_package_type_domain>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_picking_delivery_package_type_domain/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
19 changes: 19 additions & 0 deletions stock_picking_delivery_package_type_domain/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2024 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Stock Picking Delivery Package Type Domain",
"summary": """
This module will allow to extend the domain to filter package type
selection in 'Choose Delivery Package' wizard""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/delivery-carrier",
"depends": [
"delivery",
],
"data": [
"wizards/choose_delivery_package.xml",
],
}
7 changes: 7 additions & 0 deletions stock_picking_delivery_package_type_domain/readme/CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
In Odoo delivery module, you can choose the delivery package type if the carrier
is defined on the stock picking.

The filtered package types displayed are based on the package type package_carrier_type
field. That domain is set on the view and is not extendable.

This is why this module changed the domain in view to a computed field.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Denis Roussel <[email protected]>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module allows to override the available package types during the put
in pack process related to a picking with a delivery carrier filled in.

This module is a technical module, does nothing by its own and should be overriden.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 684043b

Please sign in to comment.