Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions setup/stock_picking_backorder_reason/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,
)
112 changes: 112 additions & 0 deletions stock_picking_backorder_reason/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
==============================
Stock Picking Backorder Reason
==============================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_backorder_reason
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_picking_backorder_reason
: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/stock-logistics-workflow&target_branch=16.0
:alt: Try me on Runboat

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

This module allows to help user defining a backorder reason when it is
launched on picking validation. This reason will be written on picking chatter level.

A reason can have several backorder strategy to apply:

* Create: Create the backorder
* Cancel: Cancel the backorder
* Use Partner Configuration: On partner level, you can define which strategy to
apply and for which flow (Sale: Create/Cancel, Purchase: Create/Cancel)

This behaviour can be activated on picking type level.

Moreover, on company level, you can set default reason strategy for new partners.

**Table of contents**

.. contents::
:local:

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

#. Go to Inventory > Configuration > Operation Types
#. Select the one you want to activate the feature and check the
'Backorder Reason' checkbox.
#. Then, select either the 'Backorder Reason' Sale or Purchase depending the flow the operation type
is concerned by.
#. Now, you can define some backorder reasons that will be selected by the warehouse user:
* Go to Inventory > Configuration > Warehouse Management > Backorder Reasons
* Fill in the name and choose an action to do (Create/Cancel/Use Partner option)

#. Go to Inventory > Configuration > Settings > Operations
* You can change the default reason backorder strategy for new partners (for both sale/purchase flows)
* By default, it's set on 'Create'

Known issues / Roadmap
======================

* For the time being, options are set on wizard level. One may want to have
the granularity on line one.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-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/stock-logistics-workflow/issues/new?body=module:%20stock_picking_backorder_reason%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
~~~~~~~~~~~~

* Jacques-Etienne Baudoux <je@bcim.be>
* Laurent Mignon <laurent.mignon@acsone.eu>
* Denis Roussel <denis.roussel@acsone.eu>

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/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_picking_backorder_reason>`_ 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_backorder_reason/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models, wizards
27 changes: 27 additions & 0 deletions stock_picking_backorder_reason/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2023 ACSONE SA/NV
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

{
"name": "Stock Picking Backorder Reason",
"summary": """
Allows to add a layer on top of backorder confirmation in order to choose
a reason. That reason will contain the strategy to apply.""",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": [
"stock",
],
"data": [
"views/res_config_settings.xml",
"views/stock_picking_type.xml",
"views/res_partner.xml",
"security/stock_backorder_reason.xml",
"views/stock_backorder_reason.xml",
"wizards/stock_backorder_choice.xml",
],
"demo": [
"demo/stock_backorder_reason.xml",
],
}
19 changes: 19 additions & 0 deletions stock_picking_backorder_reason/demo/stock_backorder_reason.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
<odoo noupdate="1">

<record model="stock.backorder.reason" id="stock_backorder_reason_missing">
<field name="name">Missing products</field>
<field name="backorder_action_to_do">use_partner_option</field>
</record>
<record model="stock.backorder.reason" id="stock_backorder_reason_urgent">
<field name="name">Urgent</field>
<field name="backorder_action_to_do">create</field>
</record>
<record model="stock.backorder.reason" id="stock_backorder_reason_never">
<field name="name">Won't be delivered</field>
<field name="backorder_action_to_do">cancel</field>
</record>

</odoo>
Loading