Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] stock_exception #2063

Open
wants to merge 13 commits into
base: 17.0
Choose a base branch
from
Binary file added pandoc-3.2-1-amd64.deb
Binary file not shown.
87 changes: 87 additions & 0 deletions stock_exception/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
===============
Stock Exception
===============

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

.. |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%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_exception
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_exception
: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-warehouse&target_branch=17.0
:alt: Try me on Runboat

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

This module allows you attach several customizable exceptions to your
stock picking in a way that you can filter pickings by exceptions type
and fix them.

This is especially useful in an scenario for mass stock picking import,
because it's likely some pickings have errors when you import them (like
product not found in Odoo, wrong line format etc.)

**Table of contents**

.. contents::
:local:

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

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

* Ecosoft

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

- Tharathip Chaweewongphan <[email protected]>

- Open Source Integrators http://www.opensourceintegrators.com

- Urvisha Desai [email protected]
- Nikul Chaudhary [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/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_exception>`_ 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 stock_exception/__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, wizard
20 changes: 20 additions & 0 deletions stock_exception/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2021 Ecosoft Co., Ltd (https://ecosoft.co.th)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

{
"name": "Stock Exception",
"summary": "Custom exceptions on stock picking",
"version": "17.0.1.0.0",
"category": "Generic Modules/Warehouse Management",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"depends": ["stock", "base_exception"],
"license": "AGPL-3",
"data": [
"security/ir.model.access.csv",
"data/stock_exception_data.xml",
"wizard/stock_exception_confirm_view.xml",
"views/stock_view.xml",
],
"installable": True,
}
33 changes: 33 additions & 0 deletions stock_exception/data/stock_exception_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<odoo noupdate="1">
<!-- Test Stock Exceptions Scheduler-->
<record model="ir.cron" forcecreate="True" id="ir_cron_test_stock_picking_except">
<field name="name">Stock: Test Draft Pickings Exception</field>
<field name="model_id" ref="stock.model_stock_picking" />
<field name="state">code</field>
<field name="code">model.test_all_draft_pickings()</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">20</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="active" eval="False" />
</record>
<record id="sp_excep_no_partner" model="exception.rule">
<field name="name">No Partner</field>
<field name="description">No Partner</field>
<field name="sequence">50</field>
<field name="model">stock.picking</field>
<field name="code">if not self.partner_id:
failed=True</field>
<field name="active" eval="False" />
</record>
<record id="sm_excep_product_uom_qty_check" model="exception.rule">
<field name="name">Demand Quantity not positive</field>
<field name="description">Demand quantity must be positive</field>
<field name="sequence">50</field>
<field name="model">stock.move</field>
<field name="code">if self.product_uom_qty &lt;= 0:
failed=True</field>
<field name="active" eval="False" />
</record>
</odoo>
31 changes: 31 additions & 0 deletions stock_exception/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_exception
#
# Translators:
# Matias Velazquez <[email protected]>
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-06-28 22:06+0000\n"
"PO-Revision-Date: 2023-09-03 00:15+0000\n"
"Last-Translator: Matias Velazquez <[email protected]>\n"
"Language-Team: \n"
"Language: es\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"
"X-Generator: Weblate 4.17\n"

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule__check_on_confirm
msgid "Check On Confirm"
msgstr "Chequear al Confirmar"

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule__check_on_validate
msgid "Check On Validate"
msgstr "Chequear al Validar"
175 changes: 175 additions & 0 deletions stock_exception/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_exception
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: it\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: stock_exception
#: model_terms:ir.ui.view,arch_db:stock_exception.view_picking_form
msgid "<strong>There are exceptions blocking this stock picking:</strong>"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule__model
msgid "Apply on"
msgstr ""

#. module: stock_exception
#: model_terms:ir.ui.view,arch_db:stock_exception.view_picking_internal_search
msgid "Blocked in Draft"
msgstr ""

#. module: stock_exception
#: model_terms:ir.ui.view,arch_db:stock_exception.view_picking_form
msgid ""
"Click here to be able to confirm this stock picking regardless of the "
"exceptions."
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__create_uid
msgid "Created by"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__create_date
msgid "Created on"
msgstr ""

#. module: stock_exception
#: model:exception.rule,name:stock_exception.sm_excep_product_uom_qty_check
msgid "Demand Quantity not positive"
msgstr ""

#. module: stock_exception
#: model:exception.rule,description:stock_exception.sm_excep_product_uom_qty_check
msgid "Demand quantity must be positive"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule__display_name
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__display_name
#: model:ir.model.fields,field_description:stock_exception.field_stock_move__display_name
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking__display_name
msgid "Display Name"
msgstr ""

#. module: stock_exception
#: model:ir.model,name:stock_exception.model_exception_rule
msgid "Exception Rule"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking__exception_ids
msgid "Exceptions"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking__exceptions_summary
msgid "Exceptions Summary"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__exception_ids
msgid "Exceptions to resolve"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule__id
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__id
#: model:ir.model.fields,field_description:stock_exception.field_stock_move__id
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking__id
msgid "ID"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__ignore
#: model:ir.model.fields,field_description:stock_exception.field_stock_move__ignore_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking__ignore_exception
#: model_terms:ir.ui.view,arch_db:stock_exception.view_picking_form
msgid "Ignore Exceptions"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule____last_update
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm____last_update
#: model:ir.model.fields,field_description:stock_exception.field_stock_move____last_update
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking____last_update
msgid "Last Modified on"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__write_uid
msgid "Last Updated by"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__write_date
msgid "Last Updated on"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_picking__main_exception_id
msgid "Main Exception"
msgstr ""

#. module: stock_exception
#: model:exception.rule,description:stock_exception.sp_excep_no_partner
#: model:exception.rule,name:stock_exception.sp_excep_no_partner
msgid "No Partner"
msgstr ""

#. module: stock_exception
#: model:ir.actions.act_window,name:stock_exception.action_stock_exception_confirm
msgid "Outstanding exceptions to manage"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_exception_rule__picking_ids
msgid "Pickings"
msgstr ""

#. module: stock_exception
#: model:ir.actions.act_window,name:stock_exception.action_stock_test_tree
#: model:ir.ui.menu,name:stock_exception.menu_stock_test
msgid "Stock Exception Rules"
msgstr ""

#. module: stock_exception
#: model:ir.model,name:stock_exception.model_stock_move
#: model:ir.model.fields.selection,name:stock_exception.selection__exception_rule__model__stock_move
msgid "Stock Move"
msgstr ""

#. module: stock_exception
#: model:ir.model.fields,field_description:stock_exception.field_stock_exception_confirm__related_model_id
#: model:ir.model.fields.selection,name:stock_exception.selection__exception_rule__model__stock_picking
msgid "Stock Picking"
msgstr ""

#. module: stock_exception
#: model:ir.model,name:stock_exception.model_stock_exception_confirm
msgid "Stock exception wizard"
msgstr ""

#. module: stock_exception
#: model:ir.actions.server,name:stock_exception.ir_cron_test_stock_picking_except_ir_actions_server
#: model:ir.cron,cron_name:stock_exception.ir_cron_test_stock_picking_except
#: model:ir.cron,name:stock_exception.ir_cron_test_stock_picking_except
msgid "Stock: Test Draft Pickings Exception"
msgstr ""

#. module: stock_exception
#: model:ir.model,name:stock_exception.model_stock_picking
msgid "Transfer"
msgstr ""
Loading
Loading