Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
exclude: |
(?x)
# NOT INSTALLABLE ADDONS
^base_export_async/|
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
Expand Down
18 changes: 10 additions & 8 deletions base_export_async/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Base Export Async
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github
:target: https://github.com/OCA/queue/tree/12.0/base_export_async
:target: https://github.com/OCA/queue/tree/14.0/base_export_async
:alt: OCA/queue
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/queue-12-0/queue-12-0-base_export_async
:target: https://translation.odoo-community.org/projects/queue-14-0/queue-14-0-base_export_async
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/230/12.0
:target: https://runbot.odoo-community.org/runbot/230/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -35,8 +35,8 @@ Standard Export can be delayed in asynchronous jobs executed in the background a
Usage
=====

The user is presented with a new checkbox "Asynchronous export"
in the export screen. When selected, the export is delayed in a
The user is presented with a new checkbox "Asynchronous export"
in the export screen. When selected, the export is delayed in a
background job.

The .csv or .xls file generated by the export will be sent by email
Expand All @@ -48,7 +48,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/queue/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/queue/issues/new?body=module:%20base_export_async%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/queue/issues/new?body=module:%20base_export_async%0Aversion:%2014.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.

Expand All @@ -63,7 +63,9 @@ Authors
Contributors
~~~~~~~~~~~~

Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
* Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
* Guewen Baconnier (Camptocamp)
* Cuong Nguyen Minh Tran Manh (Komit)

Maintainers
~~~~~~~~~~~
Expand All @@ -78,6 +80,6 @@ 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/queue <https://github.com/OCA/queue/tree/12.0/base_export_async>`_ project on GitHub.
This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/14.0/base_export_async>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
9 changes: 4 additions & 5 deletions base_export_async/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

{
"name": "Base Export Async",
"summary": """
Asynchronous export with job queue
""",
"version": "12.0.1.0.0",
"summary": "Asynchronous export with job queue",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue",
Expand All @@ -17,8 +15,9 @@
"security/ir_rule.xml",
"data/config_parameter.xml",
"data/cron.xml",
"data/mail_template.xml",
],
"demo": [],
"qweb": ["static/src/xml/base.xml"],
"installable": False,
"installable": True,
}
2 changes: 1 addition & 1 deletion base_export_async/data/config_parameter.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="attachment_ttl" model="ir.config_parameter">
<field name="key">attachment.ttl</field>
Expand Down
4 changes: 2 additions & 2 deletions base_export_async/data/cron.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="to_delete_attachment" model="ir.cron">
<field name="name">Delete Generated Exports</field>
<field name="model_id" ref="model_delay_export"/>
<field name="model_id" ref="model_delay_export" />
<field name="state">code</field>
<field name="code">model.cron_delete()</field>
<field name='interval_number'>1</field>
Expand Down
19 changes: 19 additions & 0 deletions base_export_async/data/mail_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="delay_export_mail_template" model="mail.template">
<field name="name">Delay Export</field>
<field
name="subject"
>Export ${object.model_description} ${datetime.date.today()}</field>
<field name="model_id" ref="base_export_async.model_delay_export" />
<field name="auto_delete" eval="True" />
<field name="body_html" type="html">
<p>Your export is available <a href="${object.url}">here</a>.</p>
<p>It will be automatically deleted the ${object.expiration_date}.</p>
<br />
<p><span
style="color: #808080;"
>This is an automated message please do not reply.</span></p>
</field>
</record>
</odoo>
20 changes: 7 additions & 13 deletions base_export_async/i18n/base_export_async.pot
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ msgstr ""
"Plural-Forms: \n"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:112
#: code:addons/base_export_async/models/delay_export.py:129
#, python-format
msgid "\n"
" <p>Your export is available <a href=\"{}\">here</a>.</p>\n"
Expand All @@ -35,7 +35,7 @@ msgstr ""

#. module: base_export_async
#: model:ir.model,name:base_export_async.model_delay_export
msgid "Allow to delay the export"
msgid "Asynchronous Export"
msgstr ""

#. module: base_export_async
Expand Down Expand Up @@ -68,7 +68,7 @@ msgid "Display Name"
msgstr ""

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:110
#: code:addons/base_export_async/models/delay_export.py:127
#, python-format
msgid "Export {} {}"
msgstr ""
Expand Down Expand Up @@ -108,25 +108,19 @@ msgid "Please select fields to export..."
msgstr ""

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:42
#, python-format
msgid "The user doesn't have an email address."
msgstr ""

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__user_id
msgid "User"
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__user_ids
msgid "Users"
msgstr ""

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:29
#: code:addons/base_export_async/models/delay_export.py:30
#, python-format
msgid "You must set an email address to your user."
msgstr ""

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/js/data_export.js:91
#: code:addons/base_export_async/static/src/js/data_export.js:92
#, python-format
msgid "You will receive the export file by email as soon as it is finished."
msgstr ""
Expand Down
137 changes: 137 additions & 0 deletions base_export_async/i18n/da.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_export_async
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-02-07 17:45+0000\n"
"Last-Translator: Hans Henrik Gabelgaard <hhg@gabelgaard.org>\n"
"Language-Team: none\n"
"Language: da\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.3.2\n"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:129
#, python-format
msgid "\n"
" <p>Your export is available <a href=\"{}\">here</a>.</p>\n"
" <p>It will be automatically deleted the {}.</p>\n"
" <p>&nbsp;</p>\n"
" <p><span style=\"color: #808080;\">\n"
" This is an automated message please do not reply.\n"
" </span></p>\n"
" "
msgstr ""
"\n"
" <p>Din export er tilgængelig <a href=\"{}\">her</a>.</p>\n"
" <p>Den vil atutomatisk blive slettet den {}.</p>\n"
" <p>&nbsp;</p>\n"
" <p><span style=\"color: #808080;\">\n"
" Dette er en automatisk besked. Undlad venlisgt at besvare.\n"
" </span></p>\n"
" "

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/xml/base.xml:9
#, python-format
msgid "(You will receive the export by email)"
msgstr "(Du vil modtage eksporten via mail)"

#. module: base_export_async
#: model:ir.model,name:base_export_async.model_delay_export
msgid "Asynchronous Export"
msgstr "Asynkron export"

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/xml/base.xml:9
#, python-format
msgid "Asynchronous export"
msgstr "Asynkron export"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__create_uid
msgid "Created by"
msgstr "Oprettet af"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__create_date
msgid "Created on"
msgstr "Oprettet den"

#. module: base_export_async
#: model:ir.actions.server,name:base_export_async.to_delete_attachment_ir_actions_server
#: model:ir.cron,cron_name:base_export_async.to_delete_attachment
#: model:ir.cron,name:base_export_async.to_delete_attachment
msgid "Delete Generated Exports"
msgstr "Slet genererede eksporter"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__display_name
msgid "Display Name"
msgstr "Vist navn"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:127
#, python-format
msgid "Export {} {}"
msgstr "Eksport {} {}"

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/js/data_export.js:47
#, python-format
msgid "External ID"
msgstr "External ID"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__id
msgid "ID"
msgstr "ID"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export____last_update
msgid "Last Modified on"
msgstr "Senest rettet den"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__write_uid
msgid "Last Updated by"
msgstr "Senest rettet af"

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__write_date
msgid "Last Updated on"
msgstr "Senest rettet den"

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/js/data_export.js:39
#, python-format
msgid "Please select fields to export..."
msgstr "Vælg venligst felter til eksporten..."

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__user_ids
msgid "Users"
msgstr "Brugere"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:30
#, python-format
msgid "You must set an email address to your user."
msgstr "Du skal have en email adresse på dit brugeropsæt."

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/js/data_export.js:92
#, python-format
msgid "You will receive the export file by email as soon as it is finished."
msgstr "Du vil modtage et link til eksporten så snart den er færdig."
34 changes: 18 additions & 16 deletions base_export_async/i18n/de.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_export_async
# * base_export_async
#
msgid ""
msgstr ""
Expand All @@ -17,9 +17,10 @@ msgstr ""
"X-Generator: Weblate 3.7.1\n"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:112
#: code:addons/base_export_async/models/delay_export.py:129
#, python-format
msgid "\n"
msgid ""
"\n"
" <p>Your export is available <a href=\"{}\">here</a>.</p>\n"
" <p>It will be automatically deleted the {}.</p>\n"
" <p>&nbsp;</p>\n"
Expand Down Expand Up @@ -47,8 +48,9 @@ msgstr "(Der Export wird per Mail bereitgestellt.)"

#. module: base_export_async
#: model:ir.model,name:base_export_async.model_delay_export
msgid "Allow to delay the export"
msgstr "Verzögerung des Exports erlauben"
#, fuzzy
msgid "Asynchronous Export"
msgstr "Asynchroner Export"

#. module: base_export_async
#. openerp-web
Expand Down Expand Up @@ -80,7 +82,7 @@ msgid "Display Name"
msgstr "Anzeigename"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:110
#: code:addons/base_export_async/models/delay_export.py:127
#, python-format
msgid "Export {} {}"
msgstr "Export {} {}"
Expand Down Expand Up @@ -120,27 +122,27 @@ msgid "Please select fields to export..."
msgstr "Bitte Felder für den Export auswählen..."

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:42
#, python-format
msgid "The user doesn't have an email address."
msgstr "Der Benutzer hat keine Email-Adresse."

#. module: base_export_async
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__user_id
msgid "User"
#: model:ir.model.fields,field_description:base_export_async.field_delay_export__user_ids
msgid "Users"
msgstr "Benutzer"

#. module: base_export_async
#: code:addons/base_export_async/models/delay_export.py:29
#: code:addons/base_export_async/models/delay_export.py:30
#, python-format
msgid "You must set an email address to your user."
msgstr ""
"Der aktuelle Benutzer hat keine Email-Adresse. Es muss eine gesetzt werden."

#. module: base_export_async
#. openerp-web
#: code:addons/base_export_async/static/src/js/data_export.js:91
#: code:addons/base_export_async/static/src/js/data_export.js:92
#, python-format
msgid "You will receive the export file by email as soon as it is finished."
msgstr ""
"Die Export-Datei wird per Email versendet, sobald der Export beendet ist."

#~ msgid "Allow to delay the export"
#~ msgstr "Verzögerung des Exports erlauben"

#~ msgid "The user doesn't have an email address."
#~ msgstr "Der Benutzer hat keine Email-Adresse."
Loading