diff --git a/account_invoice_validation_queued/README.rst b/account_invoice_validation_queued/README.rst index e35625adfb13..ae2628fef91f 100644 --- a/account_invoice_validation_queued/README.rst +++ b/account_invoice_validation_queued/README.rst @@ -17,13 +17,13 @@ Enqueue account invoice validation :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/15.0/account_invoice_validation_queued + :target: https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_validation_queued :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-15-0/account-invoicing-15-0-account_invoice_validation_queued + :target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_validation_queued :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=15.0 + :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| @@ -46,15 +46,12 @@ Installation This module depends on *queue_job* module that is hosted on https://github.com/OCA/queue. -If you are migrating from version 13.0.1.0.0 to 13.0.2.0.0, you need -`openupgradelib` library. - Configuration ============= #. Jobs are enqueued in the channel ``root.account_invoice_validation_queued``, so you must adjust your - `Odoo configuration `_ + `Odoo configuration `_ according this. #. If you want to see queued jobs, you need "Job Queue / Job Queue Manager" permission in your user. @@ -64,11 +61,11 @@ Configuration Usage ===== -#. Go to *Invoicing > Sales > Documents > Customer Invoices* or - *Invoicing > Purchases > Documents > Vendor Bills*. -#. Mark at least one check on the left part of one draft invoice line in the +#. Go to *Invoicing > Customers > Invoices* or + *Invoicing > Vendors > Bills*. +#. Mark at least one check on the left part of one draft invoice in the list view. -#. Click on *Action > Confirm Draft Invoice*. +#. Click on *Action > Post entries*. #. On the dialog popup that appears, click on "Enqueue Validation". #. If any of the invoices is already enqueued, there will be a message saying so and avoiding to perform the process. @@ -90,7 +87,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -110,6 +107,8 @@ Contributors * Pedro M. Baeza * Manuel Calero +* Saran Lim. + Maintainers ~~~~~~~~~~~ @@ -131,6 +130,6 @@ Current `maintainer `__: |maintainer-pedrobaeza| -This module is part of the `OCA/account-invoicing `_ project on GitHub. +This module is part of the `OCA/account-invoicing `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_invoice_validation_queued/__manifest__.py b/account_invoice_validation_queued/__manifest__.py index 3ce6d0aa4567..ac57e8472632 100644 --- a/account_invoice_validation_queued/__manifest__.py +++ b/account_invoice_validation_queued/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Enqueue account invoice validation", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Accounting", "license": "AGPL-3", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/account_invoice_validation_queued/readme/CONFIGURE.rst b/account_invoice_validation_queued/readme/CONFIGURE.rst index 6a784caf1b9e..c359915139e8 100644 --- a/account_invoice_validation_queued/readme/CONFIGURE.rst +++ b/account_invoice_validation_queued/readme/CONFIGURE.rst @@ -1,6 +1,6 @@ #. Jobs are enqueued in the channel ``root.account_invoice_validation_queued``, so you must adjust your - `Odoo configuration `_ + `Odoo configuration `_ according this. #. If you want to see queued jobs, you need "Job Queue / Job Queue Manager" permission in your user. diff --git a/account_invoice_validation_queued/readme/CONTRIBUTORS.rst b/account_invoice_validation_queued/readme/CONTRIBUTORS.rst index 926b3ff10278..24cbe0a10953 100644 --- a/account_invoice_validation_queued/readme/CONTRIBUTORS.rst +++ b/account_invoice_validation_queued/readme/CONTRIBUTORS.rst @@ -2,3 +2,5 @@ * Pedro M. Baeza * Manuel Calero + +* Saran Lim. \ No newline at end of file diff --git a/account_invoice_validation_queued/readme/INSTALL.rst b/account_invoice_validation_queued/readme/INSTALL.rst index 03542fdbc0fb..c8d5b2fea2bb 100644 --- a/account_invoice_validation_queued/readme/INSTALL.rst +++ b/account_invoice_validation_queued/readme/INSTALL.rst @@ -1,5 +1,2 @@ This module depends on *queue_job* module that is hosted on https://github.com/OCA/queue. - -If you are migrating from version 13.0.1.0.0 to 13.0.2.0.0, you need -`openupgradelib` library. diff --git a/account_invoice_validation_queued/readme/USAGE.rst b/account_invoice_validation_queued/readme/USAGE.rst index 3cccc4e43df1..56d22a7aede6 100644 --- a/account_invoice_validation_queued/readme/USAGE.rst +++ b/account_invoice_validation_queued/readme/USAGE.rst @@ -1,8 +1,8 @@ -#. Go to *Invoicing > Sales > Documents > Customer Invoices* or - *Invoicing > Purchases > Documents > Vendor Bills*. -#. Mark at least one check on the left part of one draft invoice line in the +#. Go to *Invoicing > Customers > Invoices* or + *Invoicing > Vendors > Bills*. +#. Mark at least one check on the left part of one draft invoice in the list view. -#. Click on *Action > Confirm Draft Invoice*. +#. Click on *Action > Post entries*. #. On the dialog popup that appears, click on "Enqueue Validation". #. If any of the invoices is already enqueued, there will be a message saying so and avoiding to perform the process. diff --git a/account_invoice_validation_queued/static/description/index.html b/account_invoice_validation_queued/static/description/index.html index 3ead9c9e04aa..9007f8053254 100644 --- a/account_invoice_validation_queued/static/description/index.html +++ b/account_invoice_validation_queued/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,7 +368,7 @@

Enqueue account invoice validation

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:52e5a113d773cd9be743169e32d06e4a7e45ac6ff87b6262b2fb96ee70aa18d9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Production/Stable License: AGPL-3 OCA/account-invoicing Translate me on Weblate Try me on Runboat

+

Production/Stable License: AGPL-3 OCA/account-invoicing Translate me on Weblate Try me on Runboat

This module allows to enqueue in several jobs the account validation process to be executed in paralell on background, which is normally done serially and on foreground.

@@ -395,15 +394,13 @@

Enqueue account invoice validation

Installation

This module depends on queue_job module that is hosted on https://github.com/OCA/queue.

-

If you are migrating from version 13.0.1.0.0 to 13.0.2.0.0, you need -openupgradelib library.

Configuration

  1. Jobs are enqueued in the channel root.account_invoice_validation_queued, so you must adjust your -Odoo configuration +Odoo configuration according this.
  2. If you want to see queued jobs, you need “Job Queue / Job Queue Manager” permission in your user.
  3. @@ -414,11 +411,11 @@

    Configuration

    Usage

      -
    1. Go to Invoicing > Sales > Documents > Customer Invoices or -Invoicing > Purchases > Documents > Vendor Bills.
    2. -
    3. Mark at least one check on the left part of one draft invoice line in the +
    4. Go to Invoicing > Customers > Invoices or +Invoicing > Vendors > Bills.
    5. +
    6. Mark at least one check on the left part of one draft invoice in the list view.
    7. -
    8. Click on Action > Confirm Draft Invoice.
    9. +
    10. Click on Action > Post entries.
    11. On the dialog popup that appears, click on “Enqueue Validation”.
    12. If any of the invoices is already enqueued, there will be a message saying so and avoiding to perform the process.
    13. @@ -441,7 +438,7 @@

      Bug Tracker

      Bugs are tracked on GitHub 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.

      +feedback.

      Do not contact contributors directly about support or help with technical issues.

    @@ -460,6 +457,7 @@

    Contributors

  4. Manuel Calero
  5. +
  6. Saran Lim. <saranl@ecosoft.co.th>
  7. @@ -471,7 +469,7 @@

    Maintainers

    promote its widespread use.

    Current maintainer:

    pedrobaeza

    -

    This module is part of the OCA/account-invoicing project on GitHub.

    +

    This module is part of the OCA/account-invoicing project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/account_invoice_validation_queued/tests/test_account_invoice_validation_queued.py b/account_invoice_validation_queued/tests/test_account_invoice_validation_queued.py index f96180820af7..6e991af4e812 100644 --- a/account_invoice_validation_queued/tests/test_account_invoice_validation_queued.py +++ b/account_invoice_validation_queued/tests/test_account_invoice_validation_queued.py @@ -1,7 +1,7 @@ # Copyright 2019 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import exceptions +from odoo import Command, exceptions from odoo.tests import TransactionCase @@ -13,14 +13,11 @@ def setUpClass(cls): cls.queue_obj = cls.env["queue.job"] cls.partner = cls.env["res.partner"].create({"name": "Test partner"}) - cls.account_type = cls.env["account.account.type"].create( - {"name": "Test account type", "internal_group": "equity"} - ) cls.account = cls.env["account.account"].create( { "name": "Test account", - "code": "TEST_AIVQ", - "user_type_id": cls.account_type.id, + "code": "TEST.AIVQ", + "account_type": "equity", } ) cls.invoice = cls.env["account.move"].create( @@ -28,16 +25,14 @@ def setUpClass(cls): "partner_id": cls.partner.id, "move_type": "out_invoice", "invoice_line_ids": [ - ( - 0, - 0, + Command.create( { "name": "Test product", "account_id": cls.account.id, "price_unit": 20.0, "quantity": 1.0, - }, - ), + } + ) ], } ) diff --git a/account_invoice_validation_queued/views/account_invoice_views.xml b/account_invoice_validation_queued/views/account_invoice_views.xml index 6f5ccc176237..e6fb86b320e0 100644 --- a/account_invoice_validation_queued/views/account_invoice_views.xml +++ b/account_invoice_validation_queued/views/account_invoice_views.xml @@ -6,16 +6,13 @@ account.move -