Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
391ddf5
[FIX]module rename. sale_delivery_block -> sale_stock_picking_blocking
AaronHForgeFlow Apr 9, 2018
632358c
[MIG] sale_stock_picking_blocking: Migration to 11.0
MiquelRForgeFlow Nov 6, 2018
3e53758
[FIX] sale_stock_picking_blocking: view error
MiquelRForgeFlow Nov 20, 2018
bf44fe5
[MIG] sale_stock_picking_blocking: Migration to version 12.0
bjeficent Jan 16, 2019
139068d
[12.0][FIX][sale_stock_picking_blocking] the _commercial_fields metho…
Tonow-c2c Jun 25, 2019
ab482d0
[MIG] Migrated the module sale_stock_picking_blocking to v13.
sudhir-erpharbor Oct 5, 2019
4ed5c3e
Run pre-commit on sale_stock_picking_blocking
gurneyalex Oct 27, 2020
d08c516
[MIG] sale_stock_picking_blocking: Migration to 14.0
jcoux Apr 7, 2021
c5278ec
[FIX][TMP] sale_stock_picking_blocking: tests
nilshamerlinck Jul 20, 2021
9a6cabf
[MIG] sale_stock_picking_blocking: Migration to 15.0
kirca Jan 26, 2022
ddeecf5
[IMP] sale_stock_picking_blocking: black, isort, prettier, pylint
kirca Jan 26, 2022
0bcd7eb
[IMP] sale_stock_picking_blocking: test coverage
kirca May 17, 2022
995a279
[RENAME] Eficent -> ForgeFlow
MiquelRForgeFlow Jun 30, 2022
243a3fe
[16.0][MIG] - sale_stock_picking_blocking
sbejaoui Feb 7, 2023
20824b6
[IMP] sale_stock_picking_blocking: Pre-commit auto fixes
nguyenminhchien Jan 11, 2024
689780e
[MIG] sale_stock_picking_blocking: Migration to 17.0
nguyenminhchien Jan 11, 2024
af552b5
[17.0][IMP] sale_stock_picking_blocking: add blocking reason to payme…
LauraCForgeFlow May 21, 2024
da6f272
[IMP] sale_stock_picking_blocking: pre-commit auto fixes
absal-smile Jan 29, 2025
6e13546
[MIG] sale_stock_picking_blocking: Migration to 18.0
absal-smile Jan 29, 2025
86b07c8
[FIX] sale_stock_picking_blocking: copy method returns multiple records
JordiMForgeFlow May 15, 2025
46952a6
[18.0][FIX] sale_stock_picking_blocking: Fixed issue when duplicating…
rf-ife May 16, 2025
e9d4885
[MIG] sale_stock_picking_blocking: Migration to 19.0
vvrossem Nov 26, 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 sale_stock_picking_blocking/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========================
Sale Stock Picking Blocking
===========================

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

.. |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/license-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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/19.0/sale_stock_picking_blocking
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-19-0/sale-workflow-19-0-sale_stock_picking_blocking
: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/sale-workflow&target_branch=19.0
:alt: Try me on Runboat

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

This module extends the functionality of sales to allow you to block the
creation of deliveries from a sales order and give a reason.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

1. Go to 'Sales > Configuration > Sales Orders > Delivery Block Reason'.
2. Create the different reasons that can lead to block the deliveries of
a sales order.
3. Add some users to the group 'Release Delivery Block in Sales Orders'.

Additionally, you can set a customer with a 'Default Delivery Block
Reason' policy to add that delivery block to his sales by default:

1. Go to 'Sales > Sales > Customers'.
2. In the 'Sales & Purchases' add a 'Default Delivery Block Reason'.
3. The 'Default Delivery Block Reason' will be added automatically when
creating a new sales order for the customer.

You can also set a payment term with a 'Default Delivery Block Reason'
policy to add that delivery block to his sales by default (only if the
customer does not have one set), in a similar way to the customers:

#. Go to 'Invoicing > Configuration > Invoicing > Payment Terms'. #. Add
a 'Default Delivery Block Reason'. #. The 'Default Delivery Block
Reason' will be added automatically when creating a new sales order for
the payment term, in case the customer does not have one.

Usage
=====

To use this module, you need to:

1. Create a new sales order and provide a 'Delivery Block Reason'.
2. Confirm Sale (No delivery would be created).
3. Release Delivery Block when it is time to create the deliveries for
the sales order.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/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/sale-workflow/issues/new?body=module:%20sale_stock_picking_blocking%0Aversion:%2019.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
-------

* ForgeFlow

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

- Lois Rilo <[email protected]>
- Laura Cazorla <[email protected]>
- Sudhir Arya <[email protected]>
- Julien Coux <[email protected]>
- Nguyen Minh Chien <[email protected]>
- Vincent Van Rossem <[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/sale-workflow <https://github.com/OCA/sale-workflow/tree/19.0/sale_stock_picking_blocking>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_stock_picking_blocking/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
25 changes: 25 additions & 0 deletions sale_stock_picking_blocking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2024 ForgeFlow S.L.
# (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Sale Stock Picking Blocking",
"summary": "Allow you to block the creation of deliveries from a sale order.",
"version": "19.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"category": "Sales",
"depends": ["sale_stock"],
"data": [
"security/ir.model.access.csv",
"security/sale_stock_picking_blocking_security.xml",
"data/sale_stock_picking_blocking_data.xml",
"views/sale_stock_picking_blocking_reason_view.xml",
"views/sale_order_view.xml",
"views/res_partner_view.xml",
"views/account_payment_term_view.xml",
],
"license": "AGPL-3",
"installable": True,
"application": False,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017 ForgeFlow S.L.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="pay_before_delivery" model="sale.delivery.block.reason">
<field name="name">Pay Before Delivery</field>
<field
name="description"
>Used to block the creation of deliveries until the customer pays.
Since you are not creating any procurement nor move, no demand will be generated or stock assigned to fulfill this sales order.
</field>
</record>
</odoo>
158 changes: 158 additions & 0 deletions sale_stock_picking_blocking/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_stock_picking_blocking
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-31 04:21+0000\n"
"PO-Revision-Date: 2017-05-31 04:21+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: sale_stock_picking_blocking
#: model:res.groups,comment:sale_stock_picking_blocking.group_sale_delivery_block
msgid ""
"\n"
" The user will be able to release deliveries that have been "
"blocked\n"
" in a sale order.\n"
" "
msgstr ""

#. module: sale_stock_picking_blocking
#: model_terms:ir.ui.view,arch_db:sale_stock_picking_blocking.sale_stock_picking_blocking_reason_form_view
msgid "Applied to"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model,name:sale_stock_picking_blocking.model_res_partner
msgid "Contact"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__create_date
msgid "Created on"
msgstr "Creado en"

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_account_payment_term__default_delivery_block_reason_id
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_res_partner__default_delivery_block
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_res_users__default_delivery_block
msgid "Default Delivery Block Reason"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_order__delivery_block_id
#: model:ir.ui.menu,name:sale_stock_picking_blocking.menu_sale_stock_picking_blocking_reason
msgid "Delivery Block Reason"
msgstr ""

#. module: sale_stock_picking_blocking
#: model_terms:ir.ui.view,arch_db:sale_stock_picking_blocking.view_sales_order_filter
msgid "Delivery Blocked Sales"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__description
msgid "Description"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__display_name
msgid "Display Name"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__id
msgid "ID"
msgstr "ID"

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__name
msgid "Name"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model,name:sale_stock_picking_blocking.model_account_payment_term
msgid "Payment Terms"
msgstr ""

#. module: sale_stock_picking_blocking
#: model_terms:ir.ui.view,arch_db:sale_stock_picking_blocking.view_order_form
msgid "Release Delivery Block"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:res.groups,name:sale_stock_picking_blocking.group_sale_delivery_block
msgid "Release Delivery Block in Sales Orders"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.actions.act_window,name:sale_stock_picking_blocking.action_sale_stock_picking_blocking_reason
#: model:ir.model,name:sale_stock_picking_blocking.model_sale_delivery_block_reason
msgid "Sale Delivery Block Reason"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_delivery_block_reason__sale_order_ids
msgid "Sale Orders"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model,name:sale_stock_picking_blocking.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model,name:sale_stock_picking_blocking.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,help:sale_stock_picking_blocking.field_res_partner__default_delivery_block
#: model:ir.model.fields,help:sale_stock_picking_blocking.field_res_users__default_delivery_block
msgid ""
"Set a reason to block by default the deliveries in this customer sales "
"orders."
msgstr ""

#. module: sale_stock_picking_blocking
#: model:ir.model.fields,help:sale_stock_picking_blocking.field_account_payment_term__default_delivery_block_reason_id
msgid ""
"Set a reason to block by default the deliveries in this payment term sales "
"orders."
msgstr ""

#. module: sale_stock_picking_blocking
#. odoo-python
#: code:addons/sale_stock_picking_blocking/models/sale_order.py:0
#, python-format
msgid "You cannot block a sale order with \"auto_done_setting\" active."
msgstr ""

#~ msgid "Partner"
#~ msgstr "ተባባሪ"
Loading