Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
65c3046
Add export_async_schedule
guewen Nov 21, 2019
09d1cc5
[UPD] README.rst
guewen Nov 22, 2019
71eb0e0
Add end of month option for the schedules
guewen Nov 22, 2019
abe7df5
[UPD] Update export_async_schedule.pot
oca-travis Jun 11, 2020
2b74fff
[UPD] README.rst
OCA-git-bot Jun 11, 2020
c5976a3
Added translation using Weblate (French)
ypapouin Nov 20, 2020
f2c910a
Translated using Weblate (French)
ypapouin Nov 20, 2020
bd00f46
Translated using Weblate (French)
ypapouin Feb 9, 2021
378c406
Support several recipient users in base_export_async
guewen Nov 21, 2019
28b6ea8
Fix test based on create_date
guewen Nov 22, 2019
ba73176
[UPD] Update base_export_async.pot
oca-travis Jun 11, 2020
667f905
[UPD] README.rst
OCA-git-bot Jun 11, 2020
1c5c090
Update translation files
oca-transbot Jun 11, 2020
2a670fb
Added translation using Weblate (French)
ypapouin Nov 20, 2020
57f7536
Translated using Weblate (French)
ypapouin Nov 20, 2020
55a1e20
Update translation files
oca-transbot Nov 22, 2020
c7006d2
Added translation using Weblate (Danish)
hhgabelgaard Feb 7, 2021
2965904
Translated using Weblate (Danish)
hhgabelgaard Feb 7, 2021
5a96cfe
Added translation using Weblate (Portuguese)
pedrocs-exo Mar 4, 2021
3840692
Translated using Weblate (Portuguese)
pedrocs-exo Mar 4, 2021
d9fbc82
Added translation using Weblate (Italian)
primes2h Jul 6, 2021
dcd95a7
[IMP] base_export_async: black, isort, prettier
vincent-cowboy Dec 22, 2022
0255aba
[MIG] base_export_async: Migration to 15.0
vincent-cowboy Dec 22, 2022
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/|
^base_import_async/|
^test_base_import_async/|
# END NOT INSTALLABLE ADDONS
Expand Down
3 changes: 2 additions & 1 deletion base_export_async/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ Authors
Contributors
~~~~~~~~~~~~

Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
* Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
* Guewen Baconnier (Camptocamp)

Maintainers
~~~~~~~~~~~
Expand Down
19 changes: 12 additions & 7 deletions base_export_async/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@

{
"name": "Base Export Async",
"summary": """
Asynchronous export with job queue
""",
"version": "12.0.1.0.0",
"summary": "Asynchronous export with job queue",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue",
"depends": ["web", "queue_job"],
"data": [
"views/assets.xml",
"security/ir.model.access.csv",
"security/ir_rule.xml",
"data/config_parameter.xml",
"data/cron.xml",
"data/mail_template.xml",
],
"demo": [],
"qweb": ["static/src/xml/base.xml"],
"installable": False,
"assets": {
"web.assets_qweb": [
"base_export_async/static/src/xml/base.xml",
],
"web.assets_backend": [
"base_export_async/static/src/js/data_export.js",
],
},
"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
26 changes: 26 additions & 0 deletions base_export_async/data/mail_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?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
t-attf-href="{{ object.url }}"
target="_blank"
>here</a>.</p>
<p>It will be automatically deleted the <t
t-out="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