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

[MIG][18.0] sale_order_invoicing_queued from 16.0 #1869

Open
wants to merge 35 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6afd387
[ADD] sale_order_invoicing_queued: Enqueue sales order invoicing
pedrobaeza Aug 29, 2019
6319b72
[IMP] *_queued: Remove `cancel` method + use same user
pedrobaeza Sep 9, 2019
4ff7cbf
[MIG] sale_order_invoicing_queued: Migration to 12.0
pedrobaeza Nov 4, 2019
d34b299
[MIG] sale_order_invoicing_queued: Migration to 13.0
pedrobaeza Nov 5, 2019
17ec4dd
[UPD] Update sale_order_invoicing_queued.pot
oca-travis Nov 7, 2019
0450c1d
Update translation files
oca-transbot Nov 26, 2019
deb78cd
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Dec 13, 2019
7de994b
Translated using Weblate (Chinese (Simplified))
liweijie0812 Dec 13, 2019
6a34809
[IMP] sale_order_invoicing_queued: Make use of new Odoo hook
pedrobaeza Mar 5, 2020
49f7499
sale_order_invoicing_queued 13.0.2.0.0
OCA-git-bot Mar 8, 2020
810ca00
pre-commit update
OCA-git-bot Mar 14, 2020
754cecd
Translated using Weblate (Spanish)
anasuarez1 Mar 10, 2021
f6467b3
[FIX] sale_order_invoicing_queued: Proper grouping criteria + compati…
pedrobaeza Apr 16, 2021
99b6a4e
[FIX] sale_order_invoicing_queued: Fix mapping fields
pedrobaeza Apr 16, 2021
6758983
[14.0] MIG sale_order_invoicing_queued
iwkse Dec 13, 2021
b2a4bdc
[UPD] Update sale_order_invoicing_queued.pot
oca-travis Dec 14, 2021
5c041bb
[UPD] README.rst
OCA-git-bot Dec 14, 2021
c91bda7
Added translation using Weblate (Italian)
francesco-ooops Dec 16, 2021
fe2c587
Translated using Weblate (Italian)
francesco-ooops Dec 16, 2021
7942149
Added translation using Weblate (Catalan)
extrememicro Feb 9, 2022
0d5af82
Translated using Weblate (Italian)
mymage Mar 30, 2023
6021f2a
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
c1930d4
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d0a4869
Update translation files
weblate Oct 9, 2023
7ff11a3
[FIX] sale_order_invoicing_queued: Black, isort, prettier
etobella Oct 27, 2023
7ab0627
Translated using Weblate (Spanish)
Ivorra78 Dec 1, 2023
674b6c3
[MIG] sale_order_invoicing_queued: Migration to 16.0
sergiobstoj Jul 22, 2024
04ca61c
[FIX] sale_order_invoicing_queued: Change of logic of 'final' variabl…
sergiobstoj Jul 30, 2024
9806d25
[FIX] sale_order_invoicing_queued: Change queue.job.channel record na…
sergiobstoj Jul 31, 2024
97515ad
[UPD] sale_order_invoicing_queued: Add condition if invoice_date is s…
sergiobstoj Sep 3, 2024
a2cc5c5
[UPD] Update sale_order_invoicing_queued.pot
Sep 27, 2024
ad7e843
[BOT] post-merge updates
OCA-git-bot Sep 27, 2024
eaf6497
Update translation files
weblate Sep 27, 2024
0043dc3
[IMP] sale_order_invoicing_queued: pre-commit auto fixes
acsonefho Dec 31, 2024
54cff01
[MIG] sale_order_invoicing_queued: Migration to 18.0
acsonefho Dec 31, 2024
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
124 changes: 124 additions & 0 deletions sale_order_invoicing_queued/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
=============================
Enqueue sales order invoicing
=============================

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

.. |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/18.0/sale_order_invoicing_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-18-0/account-invoicing-18-0-sale_order_invoicing_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=18.0
:alt: Try me on Runboat

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

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

Jobs are split following the same criteria as standard Odoo: grouping by
order invoicing address and order currency.

**Table of contents**

.. contents::
:local:

Installation
============

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

It only works in an updated 13.0 version after the 4th of March of 2020,
specifically after the commit
https://github.com/odoo/odoo/commit/6f036e758000.

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

Jobs are enqueued in the channel ``root.sale_order_invoicing_queued``,
so you must adjust your Odoo configuration according this.

If you want to see queued jobs, you need "Job Queue / Job Queue Manager"
permission in your user.

Usage
=====

1. Go to *Sales > Invoicing > Orders to Invoice*.
2. Select sales orders whose invoicing you want to enqueue.
3. Click on *Action > Invoice Order*.
4. Click on "Enqueue Invoicing" button.
5. On that moment, jobs will be enqueued on foreground, but the control
will be returned to you after that.
6. Having the "Job Queue Manager" permissions, you can go to the sales
order, and see the tab "Invoicing Jobs". There a list with all the
jobs related to that sales order can be found.

Changelog
=========

16.0.1.0.0 (2024-07-22)
-----------------------

- Migration of the module. Only change was on saleorder_views to add
'group' tag inside the page and not as a field.

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:%20sale_order_invoicing_queued%0Aversion:%2018.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
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza

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/18.0/sale_order_invoicing_queued>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions sale_order_invoicing_queued/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizards
19 changes: 19 additions & 0 deletions sale_order_invoicing_queued/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2019 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Enqueue sales order invoicing",
"version": "18.0.1.0.0",
"category": "Sales Management",
"license": "AGPL-3",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"depends": ["sale", "queue_job"],
"data": [
"data/job_queue.xml",
"views/queue_job_views.xml",
"views/sale_order_views.xml",
"wizards/sale_advance_payment_inv_views.xml",
],
"installable": True,
}
15 changes: 15 additions & 0 deletions sale_order_invoicing_queued/data/job_queue.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Queue Job Channel -->
<record id="invoice_job" model="queue.job.channel">
<field name="name">invoice_job</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<!-- Queue Job Function -->
<record id="job_function_create_invoices_job" model="queue.job.function">
<field name="model_id" ref="sale.model_sale_order" />
<field name="method">create_invoices_job</field>
<field name="channel_id" ref="invoice_job" />
</record>
</odoo>
55 changes: 55 additions & 0 deletions sale_order_invoicing_queued/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoicing_queued
#
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: ca\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: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_queue_job_sale_order_invoicing
msgid "Cancel"
msgstr ""

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_sale_advance_payment_inv
msgid "Enqueue Invoicing"
msgstr ""

#. module: sale_order_invoicing_queued
#: model:ir.model.fields,field_description:sale_order_invoicing_queued.field_sale_order__invoicing_job_ids
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_order_form_invoicing_queued
msgid "Invoicing Jobs"
msgstr ""

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_queue_job_sale_order_invoicing
msgid "Requeue"
msgstr ""

#. module: sale_order_invoicing_queued
#: model:ir.model,name:sale_order_invoicing_queued.model_sale_advance_payment_inv
msgid "Sales Advance Payment Invoice"
msgstr ""

#. module: sale_order_invoicing_queued
#: model:ir.model,name:sale_order_invoicing_queued.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_order_invoicing_queued
#. odoo-python
#: code:addons/sale_order_invoicing_queued/wizards/sale_advance_payment_inv.py:0
#, python-format
msgid ""
"There's already an enqueued job for invoicing the sales order %s. Please "
"wait until it's finished or remove it from the selection."
msgstr ""
75 changes: 75 additions & 0 deletions sale_order_invoicing_queued/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoicing_queued
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-29 16:09+0000\n"
"PO-Revision-Date: 2023-12-01 14:33+0000\n"
"Last-Translator: Ivorra78 <[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: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_queue_job_sale_order_invoicing
msgid "Cancel"
msgstr "Cancelar"

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_sale_advance_payment_inv
msgid "Enqueue Invoicing"
msgstr "Encolar facturación"

#. module: sale_order_invoicing_queued
#: model:ir.model.fields,field_description:sale_order_invoicing_queued.field_sale_order__invoicing_job_ids
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_order_form_invoicing_queued
msgid "Invoicing Jobs"
msgstr "Trabajos de facturación"

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_queue_job_sale_order_invoicing
msgid "Requeue"
msgstr "Volver a poner en cola"

#. module: sale_order_invoicing_queued
#: model:ir.model,name:sale_order_invoicing_queued.model_sale_advance_payment_inv
msgid "Sales Advance Payment Invoice"
msgstr "Ventas. Anticipo pago factura"

#. module: sale_order_invoicing_queued
#: model:ir.model,name:sale_order_invoicing_queued.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"

#. module: sale_order_invoicing_queued
#. odoo-python
#: code:addons/sale_order_invoicing_queued/wizards/sale_advance_payment_inv.py:0
#, python-format
msgid ""
"There's already an enqueued job for invoicing the sales order %s. Please "
"wait until it's finished or remove it from the selection."
msgstr ""
"Ya existe un trabajo encolado para facturar el pedido de venta %s. Por favor "
"espera hasta que haya terminado o elimine el pedido de la selección."

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"

#~ msgid "Quotation"
#~ msgstr "Presupuesto"

#~ msgid "Queue Job"
#~ msgstr "Trabajo en cola"
68 changes: 68 additions & 0 deletions sale_order_invoicing_queued/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_invoicing_queued
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-04-07 13:24+0000\n"
"Last-Translator: Francesco Foresti <[email protected]>\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"
"X-Generator: Weblate 4.14.1\n"

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_queue_job_sale_order_invoicing
msgid "Cancel"
msgstr "Annulla"

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_sale_advance_payment_inv
msgid "Enqueue Invoicing"
msgstr "Metti in coda la fatturazione"

#. module: sale_order_invoicing_queued
#: model:ir.model.fields,field_description:sale_order_invoicing_queued.field_sale_order__invoicing_job_ids
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_order_form_invoicing_queued
msgid "Invoicing Jobs"
msgstr "Jobs Fatturazione"

#. module: sale_order_invoicing_queued
#: model_terms:ir.ui.view,arch_db:sale_order_invoicing_queued.view_queue_job_sale_order_invoicing
msgid "Requeue"
msgstr "Rimetti in coda"

#. module: sale_order_invoicing_queued
#: model:ir.model,name:sale_order_invoicing_queued.model_sale_advance_payment_inv
msgid "Sales Advance Payment Invoice"
msgstr "Fattura di vendita con pagamento anticipato"

#. module: sale_order_invoicing_queued
#: model:ir.model,name:sale_order_invoicing_queued.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"

#. module: sale_order_invoicing_queued
#. odoo-python
#: code:addons/sale_order_invoicing_queued/wizards/sale_advance_payment_inv.py:0
#, python-format
msgid ""
"There's already an enqueued job for invoicing the sales order %s. Please "
"wait until it's finished or remove it from the selection."
msgstr ""
"Esiste già un job in coda per fatturare l'ordine di vendita %s. Attendi che "
"sia finito o rimuovilo dalla selezione."

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"
Loading
Loading