-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
26 changed files
with
1,892 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,132 @@ | ||
========================= | ||
Voxel account invoice oca | ||
========================= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:1c182d8e2f9883bdabb69a89cf1911d7fce607f4a01ab61195430fefe6119e7d | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Production/Stable | ||
.. |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%2Fedi-lightgray.png?logo=github | ||
:target: https://github.com/OCA/edi/tree/17.0/edi_voxel_account_invoice_oca | ||
:alt: OCA/edi | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/edi-17-0/edi-17-0-edi_voxel_account_invoice_oca | ||
: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/edi&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows you to send invoices to Voxel. Sending are queued in | ||
jobs running in the background. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module you have to belong to the access group 'Voxel | ||
manager' under 'Technical Settings', then: | ||
|
||
1. Open a customer form view. In 'Sales & Purchases' page, check 'Enable | ||
Voxel' if you want to send invoices to this customer through Voxel. | ||
2. Go to *Settings > Users & Companies > Companies*, open the companies | ||
you want to enable Voxel communication and set 'Enable Voxel' field | ||
to True. | ||
3. In the login list, add the corresponding login for connecting with | ||
Voxel to send the invoices. The final URL where the invoices are | ||
going to be sent is '<Login URL>/Outbox'. | ||
4. Save the form and edit it again, find 'invoice login' field and | ||
select the login to be used in the invoice sending. | ||
5. Select also the 'Send mode' to set when the Invoice will be sent: | ||
|
||
.. | ||
- On validate: The invoice will be sent to Voxel automatically when | ||
the invoice is validated. | ||
- At fixed time: The invoice will be sent to Voxel automatically at | ||
a fixed time. | ||
- With delay: The invoice will be sent to Voxel automatically a | ||
certain time after the invoice is validated. | ||
|
||
Note: | ||
|
||
This module enqueue the sending invoices to Voxel in jobs in the | ||
background. To do that it uses queue_job module, so a configuration is | ||
required according to that. The jobs for sending invoices to Voxel are | ||
queued in the channel ``root.voxel_export channel``. The sending status | ||
check jobs are queued in the channel ``root.voxel_status``. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
1. Go to *Invoicing > Customers > Invoices* and create a new Invoice or | ||
open an existing draft invoice. Make sure that the customer has | ||
'Enable Voxel' field checkbox (See configuration section). | ||
2. Validate the invoice and it will be send to Voxel immediately or | ||
later, depending on the Voxel 'Send mode' chosen in the company | ||
configuration. | ||
3. A new tab will be visible on the invoice form with the label 'Voxel' | ||
to show the information regarding sending the invoice to Voxel. | ||
4. When the report is sent, you will be able to see the XML report in | ||
another tab next to the jobs tab. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/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/edi/issues/new?body=module:%20edi_voxel_account_invoice_oca%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 | ||
------- | ||
|
||
* Tecnativa | ||
|
||
Contributors | ||
------------ | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Ernesto Tejeda | ||
- Pedro M. Baeza | ||
- Sergio Teruel | ||
|
||
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/edi <https://github.com/OCA/edi/tree/17.0/edi_voxel_account_invoice_oca>`_ 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,4 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models | ||
from . import reports |
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,23 @@ | ||
# Copyright 2019 Tecnativa - Ernesto Tejeda | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Voxel account invoice oca", | ||
"summary": "Sends account invoices to Voxel.", | ||
"version": "17.0.1.0.0", | ||
"development_status": "Production/Stable", | ||
"category": "Accounting & Finance", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/edi", | ||
"license": "AGPL-3", | ||
"depends": ["edi_voxel_oca", "stock_picking_invoice_link"], | ||
"data": [ | ||
"data/ir_cron_data.xml", | ||
"data/queue_job_function_data.xml", | ||
"views/account_move_views.xml", | ||
"views/report_voxel_invoice.xml", | ||
"views/res_company_view.xml", | ||
"views/res_config_settings_views.xml", | ||
], | ||
"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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- Copyright 2020 Tecnativa - Ernesto Tejeda | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="ir_cron_check_invoice_export_status" model="ir.cron"> | ||
<field name="name">Edi Voxel: Update invoice export status</field> | ||
<field name="model_id" ref="sale.model_account_move" /> | ||
<field name="state">code</field> | ||
<field name="code">model._cron_update_voxel_export_status()</field> | ||
<field name="user_id" ref="base.user_root" /> | ||
<field name="interval_number">10</field> | ||
<field name="interval_type">minutes</field> | ||
<field name="numbercall">-1</field> | ||
<field eval="False" name="doall" /> | ||
</record> | ||
</odoo> |
14 changes: 14 additions & 0 deletions
14
edi_voxel_account_invoice_oca/data/queue_job_function_data.xml
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,14 @@ | ||
<!-- Copyright 2023 Tecnativa - Ernesto tejeda | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record id="job_function_get_and_send_voxel_report" model="queue.job.function"> | ||
<field name="model_id" ref="account.model_account_move" /> | ||
<field name="method">_get_and_send_voxel_report</field> | ||
<field name="channel_id" ref="edi_voxel_oca.channel_voxel_export" /> | ||
</record> | ||
<record id="job_function_update_error_status" model="queue.job.function"> | ||
<field name="model_id" ref="account.model_account_move" /> | ||
<field name="method">_update_error_status</field> | ||
<field name="channel_id" ref="edi_voxel_oca.channel_voxel_status" /> | ||
</record> | ||
</odoo> |
181 changes: 181 additions & 0 deletions
181
edi_voxel_account_invoice_oca/i18n/edi_voxel_account_invoice_oca.pot
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,181 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * edi_voxel_account_invoice_oca | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.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: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Cancel sending" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Cancelled Voxel reports" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model,name:edi_voxel_account_invoice_oca.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model,name:edi_voxel_account_invoice_oca.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model,name:edi_voxel_account_invoice_oca.model_report_edi_voxel_account_invoice_oca_template_voxel_invoice | ||
msgid "Edi Voxel Account Invoice Report" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.actions.server,name:edi_voxel_account_invoice_oca.ir_cron_check_invoice_export_status_ir_actions_server | ||
#: model:ir.cron,cron_name:edi_voxel_account_invoice_oca.ir_cron_check_invoice_export_status | ||
#: model:ir.cron,name:edi_voxel_account_invoice_oca.ir_cron_check_invoice_export_status | ||
msgid "Edi Voxel: Update invoice export status" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,help:edi_voxel_account_invoice_oca.field_account_move__voxel_state | ||
msgid "Indicates the status of sending report to Voxel" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_res_company__voxel_invoice_login_id | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_res_config_settings__voxel_invoice_login_id | ||
msgid "Invoice login" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_bank_statement_line__voxel_job_ids | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_move__voxel_job_ids | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_payment__voxel_job_ids | ||
msgid "Jobs" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model,name:edi_voxel_account_invoice_oca.model_account_move | ||
msgid "Journal Entry" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_move__processing_error | ||
msgid "Processing Error" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Requeue" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Send now" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Send to Voxel" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "The last Voxel report processing with errors" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "The last attemp to sent to Voxel has failed" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Voxel" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_bank_statement_line__voxel_enabled | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_move__voxel_enabled | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_payment__voxel_enabled | ||
msgid "Voxel Enabled" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_move__voxel_filename | ||
msgid "Voxel Filename" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Voxel Jobs" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_move_form | ||
msgid "Voxel XML report" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel cancelled" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel filters" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.actions.report,name:edi_voxel_account_invoice_oca.report_voxel_invoice | ||
msgid "Voxel invoice" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel report accepted" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel report failed" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel report in process" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel report not sent" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model_terms:ir.ui.view,arch_db:edi_voxel_account_invoice_oca.view_account_invoice_filter | ||
msgid "Voxel report processing error" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_move__voxel_state | ||
msgid "Voxel send state" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.model.fields,field_description:edi_voxel_account_invoice_oca.field_account_move__voxel_xml_report | ||
msgid "XML Report" | ||
msgstr "" | ||
|
||
#. module: edi_voxel_account_invoice_oca | ||
#: model:ir.actions.report,print_report_name:edi_voxel_account_invoice_oca.report_voxel_invoice | ||
msgid "object._get_voxel_filename()" | ||
msgstr "" |
Oops, something went wrong.