Skip to content

Commit

Permalink
Merge PR #678 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 16, 2024
2 parents b79968a + 455556e commit 97cae94
Show file tree
Hide file tree
Showing 26 changed files with 1,728 additions and 0 deletions.
117 changes: 117 additions & 0 deletions edi_voxel_sale_order_import_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
====================
Voxel sale order oca
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ab19259eaaebf36f317b10dc5d4f35b9d811cfedc313b7b3d45561772cd26103
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fedi-lightgray.png?logo=github
:target: https://github.com/OCA/edi/tree/15.0/edi_voxel_sale_order_import_oca
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-15-0/edi-15-0-edi_voxel_sale_order_import_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=15.0
:alt: Try me on Runboat

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

This module allows you to import sales orders from Voxel. Imports
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:

#. Go to *Settings > Users & Companies > Companies*, open the companies you
want to enable Voxel communication and set 'Enable Voxel' field to True.
#. In the login list, add the corresponding login for connecting with
Voxel to import sales orders. The final URL from where sales order will be
imported is '<Login URL>/Outbox'.
#. Save the form and edit it again, find 'Sale Order login' field and select
the login to be used in the imports.
#. If you have the right access, go to
*Settings > Technical > Automation > Scheduled Actions*, find the record
named 'Edi Voxel: Get voxel sale order' and Adjust the data corresponding
to that scheduled action, such as the frequency with which that action will
be executed.

Note:

This module enqueue the imports in jobs in the background.
To do that it uses queue_job module, so a configuration is required
according to that.
The jobs for impots are queued in the channel ``root.voxel_import``.

Usage
=====

To use this module, you don't need to do anything. Automatically every so
often a 'scheduled action' will be executed that will try to import from
Voxel the sales orders that have not been imported previously.

Imports will be performed for the companies that have the 'Voxel'
field checked (See configuration section).

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_sale_order_import_oca%0Aversion:%2015.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/15.0/edi_voxel_sale_order_import_oca>`_ project on GitHub.

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

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

{
"name": "Voxel sale order oca",
"summary": "Import sale order from Voxel.",
"version": "15.0.1.0.0",
"category": "Sale",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
"license": "AGPL-3",
"depends": [
"edi_voxel_oca",
"onchange_helper", # See server-side forms (SSF) on v12
"sale",
],
"data": [
"security/ir.model.access.csv",
"security/voxel_sale_order_security.xml",
"data/ir_cron_data.xml",
"views/res_company_views.xml",
"views/res_config_settings_views.xml",
"views/sale_order_views.xml",
],
"installable": True,
}
16 changes: 16 additions & 0 deletions edi_voxel_sale_order_import_oca/data/ir_cron_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="ir_cron_get_voxel_sale_order" model="ir.cron">
<field name="name">Edi Voxel: Get voxel sale order</field>
<field name="model_id" ref="sale.model_sale_order" />
<field name="state">code</field>
<field name="code">model.import_orders_cron()</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>
173 changes: 173 additions & 0 deletions edi_voxel_sale_order_import_oca/i18n/edi_voxel_sale_order_import.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_voxel_sale_order_import_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_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid "'%s' is not recognised as an XML file"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"<br/><span style='font-weight: bold;'>The following errors were "
"found:</span><br/><ul>%s</ul>"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"Can't find a suitable Unit of Measure for this data:\n"
"\n"
"%(product_data)s\n"
"Results: %(product_uom_count)s"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"Can't find a suitable partner for this data:\n"
"\n"
"%(data)s\n"
"Results: %(partner_count)s"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"Can't find a suitable product for this data:\n"
"\n"
"%(product_data)s\n"
"Results: %(product_count)s"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model,name:edi_voxel_sale_order_import_oca.model_res_company
msgid "Companies"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model,name:edi_voxel_sale_order_import_oca.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"Couldn't find any <b>Company</b> corresponding to the following information "
"extracted from the Voxel document:<br/><ul>%s</ul>"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"Couldn't find any <b>Delivery Address</b> corresponding to the following "
"information extracted from the Voxel document:<br/><ul>%s</ul>"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid ""
"Couldn't find any <b>Tax</b> corresponding to the following information "
"extracted from the Voxel document:<br/><ul>%s</ul>"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid "Created automatically via voxel import (%s)."
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.actions.server,name:edi_voxel_sale_order_import_oca.ir_cron_get_voxel_sale_order_ir_actions_server
#: model:ir.cron,cron_name:edi_voxel_sale_order_import_oca.ir_cron_get_voxel_sale_order
#: model:ir.cron,name:edi_voxel_sale_order_import_oca.ir_cron_get_voxel_sale_order
msgid "Edi Voxel: Get voxel sale order"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_sale_order__voxel_enabled
msgid "Enable Voxel"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,help:edi_voxel_sale_order_import_oca.field_sale_order__voxel_state
msgid "Indicates the status of sending report to Voxel"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_sale_order__voxel_job_ids
msgid "Jobs"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_sale_order__processing_error
msgid "Processing Error"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_res_company__voxel_sale_order_login_id
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_res_config_settings__voxel_sale_order_login_id
msgid "Sale Order login"
msgstr ""

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

#. module: edi_voxel_sale_order_import_oca
#: code:addons/edi_voxel_sale_order_import_oca/models/sale_order.py:0
#, python-format
msgid "This XML file is not XML-compliant"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model_terms:ir.ui.view,arch_db:edi_voxel_sale_order_import_oca.view_order_form
msgid "Voxel"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_sale_order__voxel_filename
msgid "Voxel Filename"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model_terms:ir.ui.view,arch_db:edi_voxel_sale_order_import_oca.sale_order_view_search_inherit_quotation
msgid "Voxel Quotations"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.actions.act_window,name:edi_voxel_sale_order_import_oca.action_voxel_queue_job
#: model:ir.ui.menu,name:edi_voxel_sale_order_import_oca.menu_voxel_queue_job
msgid "Voxel order Jobs"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_sale_order__voxel_state
msgid "Voxel send state"
msgstr ""

#. module: edi_voxel_sale_order_import_oca
#: model:ir.model.fields,field_description:edi_voxel_sale_order_import_oca.field_sale_order__voxel_xml_report
msgid "XML Report"
msgstr ""
Loading

0 comments on commit 97cae94

Please sign in to comment.