-
-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] account_move_exception: Migration to 16.0
- Loading branch information
1 parent
89e385d
commit 303e615
Showing
27 changed files
with
1,513 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,89 @@ | ||
====================== | ||
Account Move Exception | ||
====================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:017d2c314425414f27a8fb0ec76b0a1f5543565319521088cc5bb8db3bbe1299 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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%2Faccount--invoicing-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-invoicing/tree/16.0/account_move_exception | ||
:alt: OCA/account-invoicing | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_move_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/account-invoicing&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows you attach several customizable exceptions to your | ||
account move in a way that you can filter moves by exceptions type and fix them. | ||
|
||
This is especially useful in an scenario for mass accounts move import, because it's likely some moves have | ||
errors when you import them (like product not found in Odoo, wrong line | ||
format etc.) | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/95/13.0 | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20account_move_exception%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 | ||
~~~~~~~ | ||
|
||
* ForgeFlow | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Miquel Raïch <[email protected]> | ||
* Pimolnat Suntian <[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/account-invoicing <https://github.com/OCA/account-invoicing/tree/16.0/account_move_exception>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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,2 @@ | ||
from . import models, wizard | ||
from .init_hook import pre_init_hook |
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,21 @@ | ||
# Copyright 2021 ForgeFlow (http://www.forgeflow.com) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Account Move Exception", | ||
"summary": "Custom exceptions on account move", | ||
"version": "16.0.1.0.0", | ||
"category": "Generic Modules/Account", | ||
"author": "ForgeFlow, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/account-invoicing", | ||
"depends": ["account", "base_exception"], | ||
"license": "AGPL-3", | ||
"data": [ | ||
"data/account_exception_data.xml", | ||
"security/ir.model.access.csv", | ||
"wizard/account_exception_confirm_view.xml", | ||
"views/account_view.xml", | ||
], | ||
"pre_init_hook": "pre_init_hook", | ||
"installable": True, | ||
} |
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,34 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<!-- Test Purchase Exceptions Scheduler--> | ||
<record model="ir.cron" forcecreate="True" id="ir_cron_test_acc_move_except"> | ||
<field name="name">Account: Test Draft Moves Exception</field> | ||
<field name="model_id" ref="account.model_account_move" /> | ||
<field name="state">code</field> | ||
<field name="code">model.test_all_draft_moves()</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="am_excep_no_email" model="exception.rule"> | ||
<field name="name">No email on vendor</field> | ||
<field name="description">No Email for Vendor</field> | ||
<field name="sequence">50</field> | ||
<field name="model">account.move</field> | ||
<field name="code">if not self.partner_id.email: | ||
failed=True</field> | ||
<field name="active" eval="False" /> | ||
</record> | ||
<record id="aml_excep_qty_check" model="exception.rule"> | ||
<field name="name">Quantity not positive</field> | ||
<field name="description">Move line quantity must be positive</field> | ||
<field name="sequence">50</field> | ||
<field name="model">account.move.line</field> | ||
<field name="code">if self.quantity < 0: | ||
failed=True</field> | ||
<field name="active" eval="False" /> | ||
</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,172 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_move_exception | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: account_move_exception | ||
#: model_terms:ir.ui.view,arch_db:account_move_exception.view_move_form | ||
msgid "<strong>You have an outstanding exception to manage:</strong>" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.actions.act_window,name:account_move_exception.action_account_test_tree | ||
#: model:ir.ui.menu,name:account_move_exception.menu_account_test | ||
msgid "Account Exception Rules" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model,name:account_move_exception.model_account_exception_confirm | ||
msgid "Account exception wizard" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields.selection,name:account_move_exception.selection__exception_rule__model__account_move | ||
msgid "Account move" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields.selection,name:account_move_exception.selection__exception_rule__model__account_move_line | ||
msgid "Account move line" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.actions.server,name:account_move_exception.ir_cron_test_acc_move_except_ir_actions_server | ||
#: model:ir.cron,cron_name:account_move_exception.ir_cron_test_acc_move_except | ||
#: model:ir.cron,name:account_move_exception.ir_cron_test_acc_move_except | ||
msgid "Account: Test Draft Moves Exception" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_exception_rule__model | ||
msgid "Apply on" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model_terms:ir.ui.view,arch_db:account_move_exception.view_account_move_filter | ||
msgid "Blocked in Draft" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model_terms:ir.ui.view,arch_db:account_move_exception.view_move_form | ||
msgid "Click here to be able to post this entry regardless of the exceptions." | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__create_uid | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__create_date | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model,name:account_move_exception.model_exception_rule | ||
msgid "Exception Rule" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_move__exception_ids | ||
#: model:ir.ui.menu,name:account_move_exception.menu_account_exception_parent | ||
msgid "Exceptions" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_move__exceptions_summary | ||
msgid "Exceptions Summary" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__exception_ids | ||
msgid "Exceptions to resolve" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__ignore | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_move__ignore_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_move_line__ignore_exception | ||
#: model_terms:ir.ui.view,arch_db:account_move_exception.view_move_form | ||
msgid "Ignore Exceptions" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_exception_rule__account_move_ids | ||
msgid "Journal Entries" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model,name:account_move_exception.model_account_move | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__related_model_id | ||
msgid "Journal Entry" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model,name:account_move_exception.model_account_move_line | ||
msgid "Journal Item" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_exception_confirm__write_date | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.model.fields,field_description:account_move_exception.field_account_move__main_exception_id | ||
msgid "Main Exception" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:exception.rule,description:account_move_exception.aml_excep_qty_check | ||
msgid "Move line quantity must be positive" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:exception.rule,description:account_move_exception.am_excep_no_email | ||
msgid "No Email for Vendor" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:exception.rule,name:account_move_exception.am_excep_no_email | ||
msgid "No email on vendor" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:ir.actions.act_window,name:account_move_exception.action_account_exception_confirm | ||
msgid "Outstanding exceptions to manage" | ||
msgstr "" | ||
|
||
#. module: account_move_exception | ||
#: model:exception.rule,name:account_move_exception.aml_excep_qty_check | ||
msgid "Quantity not positive" | ||
msgstr "" |
Oops, something went wrong.