Skip to content

Commit

Permalink
Merge PR #2366 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Feb 24, 2023
2 parents b97ef48 + 831905a commit bfbef91
Show file tree
Hide file tree
Showing 93 changed files with 11,693 additions and 0 deletions.
104 changes: 104 additions & 0 deletions sale_stock_picking_blocking/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
===========================
Sale Stock Picking Blocking
===========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/15.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-15-0/sale-workflow-15-0-sale_stock_picking_blocking
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/167/15.0
:alt: Try me on Runbot

|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:

#. Go to 'Sales > Configuration > Sales > Delivery Block Reason'.
#. Create the different reasons that can lead to block the deliveries of a
sales order.
#. 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:

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

Usage
=====

To use this module, you need to:

#. Create a new sales order and provide a 'Delivery Block Reason'.
#. Confirm Sale (No delivery would be created).
#. 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_stock_picking_blocking%0Aversion:%2015.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
~~~~~~~

* Eficent

Contributors
~~~~~~~~~~~~

* Lois Rilo <[email protected]>
* Sudhir Arya <[email protected]>
* Julien Coux <[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/15.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
24 changes: 24 additions & 0 deletions sale_stock_picking_blocking/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.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": "16.0.1.0.0",
"author": "Eficent, 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",
],
"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>
154 changes: 154 additions & 0 deletions sale_stock_picking_blocking/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# 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_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____last_update
msgid "Last Modified on"
msgstr ""

#. 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_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,name:sale_stock_picking_blocking.model_sale_order
msgid "Sale Order"
msgstr ""

#. module: sale_stock_picking_blocking
#: model_terms:ir.ui.view,arch_db:sale_stock_picking_blocking.sale_stock_picking_blocking_reason_tree_view
msgid "Sale Order 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_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
#: code:addons/sale_stock_picking_blocking/models/sale_order.py:19
#, python-format
msgid "You cannot block a sale order with \"auto_done_setting\" active."
msgstr ""

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

0 comments on commit bfbef91

Please sign in to comment.