-
-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #572 from Eficent/10.0-mig-sale_delivery_block
[10.0][MIG] sale_delivery_block
- Loading branch information
Showing
83 changed files
with
10,813 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
=========================== | ||
Sale Stock Picking Blocking | ||
=========================== | ||
|
||
This module extends the functionality of sales to allow you to block the | ||
creation of deliveries from a sales order and give a reason. | ||
|
||
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. | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/167/10.0 | ||
|
||
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 smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Lois Rilo <lois.rilo@eficent.com> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 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). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 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": "10.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, | ||
} |
12 changes: 12 additions & 0 deletions
12
sale_stock_picking_blocking/data/sale_stock_picking_blocking_data.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2017 Eficent Business and IT Consulting Services 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * sale_stock_picking_blocking | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: am\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model:res.groups,comment:sale_stock_picking_blocking.group_sale_stock_picking_blocking | ||
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: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.fields,field_description:sale_stock_picking_blocking.field_sale_stock_picking_blocking_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_stock_picking_blocking_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 | ||
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: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_stock_picking_blocking_reason_description | ||
msgid "Description" | ||
msgstr "" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_stock_picking_blocking_reason_display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_stock_picking_blocking_reason_id | ||
msgid "ID" | ||
msgstr "ID" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model:ir.model.fields,field_description:sale_stock_picking_blocking.field_sale_stock_picking_blocking_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_stock_picking_blocking_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_stock_picking_blocking_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_stock_picking_blocking_reason_name | ||
msgid "Name" | ||
msgstr "" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model:ir.model,name:sale_stock_picking_blocking.model_res_partner | ||
msgid "Partner" | ||
msgstr "ተባባሪ" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model: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_stock_picking_blocking | ||
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 | ||
msgid "Sale Delivery Block Reason" | ||
msgstr "" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model: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_stock_picking_blocking_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 | ||
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:20 | ||
#, python-format | ||
msgid "You cannot block a sale order with \"auto_done_setting\" active." | ||
msgstr "" | ||
|
||
#. module: sale_stock_picking_blocking | ||
#: model:ir.model,name:sale_stock_picking_blocking.model_sale_stock_picking_blocking_reason | ||
msgid "sale.delivery.block.reason" | ||
msgstr "" |
Oops, something went wrong.