diff --git a/sale_commission_queued/README.rst b/sale_commission_queued/README.rst new file mode 100644 index 000000000..b7e3e4947 --- /dev/null +++ b/sale_commission_queued/README.rst @@ -0,0 +1,85 @@ +======================== +Sales commissions queued +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:72767eb7d9f73ba107b877f1106ee7547aa4cc70b1e25c526c1cd579db64987d + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcommission-lightgray.png?logo=github + :target: https://github.com/OCA/commission/tree/15.0/sale_commission_queued + :alt: OCA/commission +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/commission-15-0/commission-15-0-sale_commission_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/commission&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to use queue for creation of agents settlement invoices. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +In Create commission invoices wizard, use button "enqueue invoices creation" to use the queue feature. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Ilyas +* Ooops404 + +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. + +.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px + :target: https://github.com/pedrobaeza + :alt: pedrobaeza + +Current `maintainer `__: + +|maintainer-pedrobaeza| + +This module is part of the `OCA/commission `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_commission_queued/__init__.py b/sale_commission_queued/__init__.py new file mode 100644 index 000000000..40272379f --- /dev/null +++ b/sale_commission_queued/__init__.py @@ -0,0 +1 @@ +from . import wizard diff --git a/sale_commission_queued/__manifest__.py b/sale_commission_queued/__manifest__.py new file mode 100644 index 000000000..696efd205 --- /dev/null +++ b/sale_commission_queued/__manifest__.py @@ -0,0 +1,14 @@ +{ + "name": "Sales commissions queued", + "version": "15.0.1.0.0", + "author": "Ilyas, Ooops404," "Odoo Community Association (OCA)", + "category": "Sales Management", + "license": "AGPL-3", + "depends": ["account_commission", "queue_job"], + "website": "https://github.com/OCA/commission", + "maintainers": ["pedrobaeza"], + "data": [ + "wizard/wizard_invoice.xml", + ], + "installable": True, +} diff --git a/sale_commission_queued/i18n/es.po b/sale_commission_queued/i18n/es.po new file mode 100644 index 000000000..0d92879cc --- /dev/null +++ b/sale_commission_queued/i18n/es.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_commission_queued +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-12-13 11:29+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\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_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: sale_commission_queued +#: model_terms:ir.ui.view,arch_db:sale_commission_queued.sale_commission_make_invoice_form_inherit +msgid "Enqueue Invoices Creation" +msgstr "Poner en cola la Creación de Facturas" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice__id +msgid "ID" +msgstr "ID" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: sale_commission_queued +#: model:ir.model,name:sale_commission_queued.model_sale_commission_make_invoice +msgid "Wizard for making an invoice from a settlement" +msgstr "Asistente para hacer una factura a partir de una liquidación" diff --git a/sale_commission_queued/i18n/it.po b/sale_commission_queued/i18n/it.po new file mode 100644 index 000000000..5346c0bf3 --- /dev/null +++ b/sale_commission_queued/i18n/it.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_commission_queued +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-05-06 15:35+0000\n" +"Last-Translator: mymage \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.17\n" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: sale_commission_queued +#: model_terms:ir.ui.view,arch_db:sale_commission_queued.sale_commission_make_invoice_form_inherit +msgid "Enqueue Invoices Creation" +msgstr "Accoda creazione fatture" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice__id +msgid "ID" +msgstr "ID" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: sale_commission_queued +#: model:ir.model,name:sale_commission_queued.model_sale_commission_make_invoice +msgid "Wizard for making an invoice from a settlement" +msgstr "Procedura per preparare una fattura da una provvigione" diff --git a/sale_commission_queued/i18n/sale_commission_queued.pot b/sale_commission_queued/i18n/sale_commission_queued.pot new file mode 100644 index 000000000..205f1077c --- /dev/null +++ b/sale_commission_queued/i18n/sale_commission_queued.pot @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_commission_queued +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.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: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice__display_name +msgid "Display Name" +msgstr "" + +#. module: sale_commission_queued +#: model_terms:ir.ui.view,arch_db:sale_commission_queued.sale_commission_make_invoice_form_inherit +msgid "Enqueue Invoices Creation" +msgstr "" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice__id +msgid "ID" +msgstr "" + +#. module: sale_commission_queued +#: model:ir.model.fields,field_description:sale_commission_queued.field_sale_commission_make_invoice____last_update +msgid "Last Modified on" +msgstr "" + +#. module: sale_commission_queued +#: model:ir.model,name:sale_commission_queued.model_sale_commission_make_invoice +msgid "Wizard for making an invoice from a settlement" +msgstr "" diff --git a/sale_commission_queued/readme/CONFIGURE.rst b/sale_commission_queued/readme/CONFIGURE.rst new file mode 100644 index 000000000..e69de29bb diff --git a/sale_commission_queued/readme/CONTRIBUTORS.rst b/sale_commission_queued/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..e69de29bb diff --git a/sale_commission_queued/readme/DESCRIPTION.rst b/sale_commission_queued/readme/DESCRIPTION.rst new file mode 100644 index 000000000..fa6b405b4 --- /dev/null +++ b/sale_commission_queued/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to use queue for creation of agents settlement invoices. diff --git a/sale_commission_queued/readme/ROADMAP.rst b/sale_commission_queued/readme/ROADMAP.rst new file mode 100644 index 000000000..e69de29bb diff --git a/sale_commission_queued/readme/USAGE.rst b/sale_commission_queued/readme/USAGE.rst new file mode 100644 index 000000000..d99f31811 --- /dev/null +++ b/sale_commission_queued/readme/USAGE.rst @@ -0,0 +1 @@ +In Create commission invoices wizard, use button "enqueue invoices creation" to use the queue feature. diff --git a/sale_commission_queued/static/description/icon.png b/sale_commission_queued/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/sale_commission_queued/static/description/icon.png differ diff --git a/sale_commission_queued/static/description/index.html b/sale_commission_queued/static/description/index.html new file mode 100644 index 000000000..45d3d8f52 --- /dev/null +++ b/sale_commission_queued/static/description/index.html @@ -0,0 +1,421 @@ + + + + + +Sales commissions queued + + + +
+

Sales commissions queued

+ + +

Beta License: AGPL-3 OCA/commission Translate me on Weblate Try me on Runboat

+

This module allows to use queue for creation of agents settlement invoices.

+

Table of contents

+ +
+

Usage

+

In Create commission invoices wizard, use button “enqueue invoices creation” to use the queue feature.

+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Ilyas
  • +
  • Ooops404
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

pedrobaeza

+

This module is part of the OCA/commission project on GitHub.

+

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

+
+
+
+ + diff --git a/sale_commission_queued/wizard/__init__.py b/sale_commission_queued/wizard/__init__.py new file mode 100644 index 000000000..d1941376c --- /dev/null +++ b/sale_commission_queued/wizard/__init__.py @@ -0,0 +1 @@ +from . import wizard_invoice diff --git a/sale_commission_queued/wizard/wizard_invoice.py b/sale_commission_queued/wizard/wizard_invoice.py new file mode 100644 index 000000000..9c909db25 --- /dev/null +++ b/sale_commission_queued/wizard/wizard_invoice.py @@ -0,0 +1,8 @@ +from odoo import models + + +class CommissionMakeInvoice(models.TransientModel): + _inherit = "commission.make.invoice" + + def button_create_queued(self): + self.with_delay().button_create() diff --git a/sale_commission_queued/wizard/wizard_invoice.xml b/sale_commission_queued/wizard/wizard_invoice.xml new file mode 100644 index 000000000..72520ec50 --- /dev/null +++ b/sale_commission_queued/wizard/wizard_invoice.xml @@ -0,0 +1,21 @@ + + + + commission.make.invoice.inherit + commission.make.invoice + + + + + + diff --git a/setup/sale_commission_queued/odoo/addons/sale_commission_queued b/setup/sale_commission_queued/odoo/addons/sale_commission_queued new file mode 120000 index 000000000..b192e2268 --- /dev/null +++ b/setup/sale_commission_queued/odoo/addons/sale_commission_queued @@ -0,0 +1 @@ +../../../../sale_commission_queued \ No newline at end of file diff --git a/setup/sale_commission_queued/setup.py b/setup/sale_commission_queued/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/sale_commission_queued/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)