Commit Graph

439 Commits

Author SHA1 Message Date
len
1017e7f389 [FIX] attachment_zipped_download: fix stream download
Before the fix, 0 bytes would be transferred.
2024-12-18 13:03:26 +01:00
Ivorra78
69649b370e Translated using Weblate (Spanish)
Currently translated at 100.0% (7 of 7 strings)

Translation: knowledge-16.0/knowledge-16.0-attachment_zipped_download
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-attachment_zipped_download/es/
2024-12-18 13:03:26 +01:00
Pierre Verkest
b52f3f6cf6 [IMP] attachment_zipped_download: provide ir.attachment.action_download mixin
This helps to download multiple attachments from any models.

[UPD] README.rst

[UPD] Update attachment_zipped_download.pot

[UPD] README.rst

attachment_zipped_download 16.0.2.0.0

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-attachment_zipped_download
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-attachment_zipped_download/
2024-12-18 13:03:24 +01:00
Pierre Verkest
3d5a695527 [FIX] attachment_zipped_download: zip allowed document only
The previous code allowed any authenticated to retreive any attachment present
on odoo filesystem. So a WMS user could technically spoken download a zip with
accounting documents.

This implementation is calling attachemnt.check("read") to ensure access
right and use attachemnt.raw attribute to retreive file to archive which
(not test) should works with attachment saved somewhere else than the
local filesystem (s3 storage, pgsql large object storage...).

attachment_zipped_download 16.0.1.0.2
2024-12-18 13:03:22 +01:00
Bole
4c97f74cde Added translation using Weblate (Croatian)
Translated using Weblate (Croatian)

Currently translated at 100.0% (4 of 4 strings)

Translation: knowledge-16.0/knowledge-16.0-attachment_zipped_download
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-attachment_zipped_download/hr/
2024-12-18 13:03:20 +01:00
Francesco Foresti
d9ad8f44ac Translated using Weblate (Italian)
Currently translated at 100.0% (4 of 4 strings)

Translation: knowledge-16.0/knowledge-16.0-attachment_zipped_download
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-attachment_zipped_download/it/
2024-12-18 13:03:20 +01:00
Víctor Martínez
ae6b608773 [FIX] attachment_zipped_download: Fix tests
attachment_zipped_download 16.0.1.0.1
2024-12-18 13:03:18 +01:00
mymage
6998a000cf Added translation using Weblate (Italian)
Translated using Weblate (Italian)

Currently translated at 100.0% (4 of 4 strings)

Translation: knowledge-16.0/knowledge-16.0-attachment_zipped_download
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-attachment_zipped_download/it/
2024-12-18 13:03:17 +01:00
FernandoRomera
aa52abea6b [16.0][MIG] attachment_zipped_download: Migration to 16.0
[UPD] Update attachment_zipped_download.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-attachment_zipped_download
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-attachment_zipped_download/
2024-12-18 13:03:16 +01:00
oca-travis
adb20dd61c [UPD] Update attachment_zipped_download.pot
[UPD] README.rst
2024-12-18 13:03:14 +01:00
Víctor Martínez
ef0d2bbcb1 [ADD] attachment_zipped_download: New addon.
TT33403
2024-12-18 12:58:15 +01:00
OCA-git-bot
4c08cb889e [BOT] post-merge updates 2024-11-14 18:28:09 +00:00
OCA-git-bot
75177d37a9 Merge PR #506 into 17.0
Signed-off-by pedrobaeza
2024-11-14 18:24:21 +00:00
Martin Quinteros
0b11b08d40 [FIX] document_url: Fix Download attachment component
Fix download atachment widget.

Document_url when activated causes error when opening attachment link on the chatter window
This commit (366676cafd) move download buttons into a sub-component.
I modified the module behavior to use canDownload() method instead of adding a t-if in the view and prevent the chatter component from breaking when the message has attachments.
2024-11-14 15:19:36 -03:00
Weblate
ea8e5faed2 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-17.0/knowledge-17.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page_approval/
2024-11-13 07:50:49 +00:00
OCA-git-bot
acd3a0eb8d [BOT] post-merge updates 2024-11-13 06:38:59 +00:00
oca-ci
f1b4270992 [UPD] Update document_page_approval.pot 2024-11-13 06:36:59 +00:00
OCA-git-bot
743d95dea3 Merge PR #509 into 17.0
Signed-off-by pedrobaeza
2024-11-13 06:35:18 +00:00
Víctor Martínez
6438cd21f0 [MIG] document_page_approval: Finish migration
Changes done:
- Squash administrative commits
- Purge translations
- Remove ir.model.access.csv file
- Improve tests (change to setUpClass)
- Replace name_get() to _compute_display_name() (document_page)
- Remove readonly=1 (redudant, it already is) defined in approved_uid and approved_date fields in views
- Restore readonly=1 to the state field
- Remove duplicate Back to draft button

TT51529
2024-11-12 17:38:23 +01:00
EdgarRetes
74660f10b7 [MIG] document_page_approval: Migration to 17.0 2024-11-12 10:31:56 +01:00
Víctor Martínez
b919f6bf72 [IMP] document_page_approval: pre-commit auto fixes 2024-11-12 10:31:56 +01:00
jakobkrabbe
9684a7a639 Translated using Weblate (Swedish)
Currently translated at 100.0% (62 of 62 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/sv/
2024-11-12 10:31:56 +01:00
Sergio Ariel Ameghino
41da8c7a12 Translated using Weblate (Spanish)
Currently translated at 100.0% (62 of 62 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/es/
2024-11-12 10:31:56 +01:00
Víctor Martínez
91564a5ff1 [FIX] document_page_approval: Add correct followers in history pages
[BOT] post-merge updates
2024-11-12 10:31:55 +01:00
mymage
89bf406d3d Translated using Weblate (Italian)
Currently translated at 100.0% (62 of 62 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:55 +01:00
Peter Romão
d426437c6b Translated using Weblate (Portuguese)
Currently translated at 100.0% (60 of 60 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/pt/

[UPD] Update document_page_approval.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
2024-11-12 10:31:54 +01:00
Ivorra78
be906f7687 Translated using Weblate (Spanish)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/es/

[UPD] Update document_page_approval.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
2024-11-12 10:31:53 +01:00
mymage
48c055e507 Translated using Weblate (Italian)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:53 +01:00
Ivorra78
41b2029f28 Translated using Weblate (Spanish)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/es/

[UPD] Update document_page_approval.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
2024-11-12 10:31:51 +01:00
mymage
c4fe172fcd Translated using Weblate (Italian)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:51 +01:00
Francesco Foresti
70e9353fc1 Translated using Weblate (Italian)
Currently translated at 96.7% (59 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:51 +01:00
luis-ron
4ea8772d82 Translated using Weblate (Spanish)
Currently translated at 95.0% (58 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/es/
2024-11-12 10:31:51 +01:00
mymage
06e5f42f2e Translated using Weblate (Italian)
Currently translated at 96.7% (59 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:51 +01:00
Francesco Foresti
77c573c34a Translated using Weblate (Italian)
Currently translated at 96.7% (59 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/

Translated using Weblate (Italian)

Currently translated at 96.7% (59 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/

[UPD] Update document_page_approval.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
2024-11-12 10:31:50 +01:00
Víctor Martínez
012c7354ba [FIX] document_page_approval: Change mail template expressions
[UPD] Update document_page_approval.pot

document_page_approval 16.0.1.1.0

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
2024-11-12 10:31:49 +01:00
mymage
a91aeb61e2 Translated using Weblate (Italian)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:49 +01:00
Francesco Foresti
37b8da54f0 Translated using Weblate (Italian)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:49 +01:00
Bole
1138d052df Translated using Weblate (Croatian)
Currently translated at 83.6% (51 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/hr/

Translated using Weblate (Croatian)

Currently translated at 96.7% (59 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/hr/
2024-11-12 10:31:48 +01:00
mymage
a8534ab388 Translated using Weblate (Italian)
Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/

Translated using Weblate (Italian)

Currently translated at 100.0% (61 of 61 strings)

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/it/
2024-11-12 10:31:46 +01:00
FernandoRomera
855ada5558 [16.0][MIG] document_page_approval: Migration to 16.0
[UPD] Update document_page_approval.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-16.0/knowledge-16.0-document_page_approval
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_page_approval/
2024-11-12 10:31:45 +01:00
Víctor Martínez
9a203c464b [MIG] document_page_approval: Migration to 15.0
TT36950

[UPD] Update document_page_approval.pot

[UPD] README.rst
2024-11-12 10:31:43 +01:00
Pedro M. Baeza
21c3babdf1 [FIX] document_page_approval: Avoid W7940 (dangerous-view-replace-wo-priority) 2024-11-12 10:19:23 +01:00
Jeroen Vet
0db8877942 [MIG] document_page_approval: Migration to 14.0
[UPD] Update document_page_approval.pot

[UPD] README.rst
2024-11-12 10:19:23 +01:00
Jeroen Vet
af56fba7d0 [IMP] document_page_approval: black, isort, prettier + squashed admin commits 2024-11-12 10:19:23 +01:00
flachica
4257dd7990 Migrate to 13.0 document_page_approval
To pass test is necesary set approval required to False in demo data
2024-11-12 10:19:23 +01:00
flachica
b2653fcfd6 [IMP] document_page_approval: black, isort 2024-11-12 10:19:23 +01:00
Victor M.M. Torres
b8856712f1 [MIG] document_page_approval: Migration to v12
[UPD] Update document_page_approval.pot
2024-11-12 10:19:23 +01:00
nicomacr
3c038cf9a2 [FIX] document_page_aproval: Modify in records rules
Add the the group eployee to the rule "Change Request Global" to allow to the user with the rule "Change Request Approver" to create pages
2024-11-12 10:19:23 +01:00
mreficent
a0910c6bae [FIX] pylint/javascript-lint
[ADD] icon.png
2024-11-12 10:19:23 +01:00
Iván Todorovich
0915ea699b [FIX+IMP] document_page_approval:
* Rename classes and files to match model names, and removed workflow engine.
* Some fields should be readonly if not in draft.
* Allow Knowledge / Manager to edit previous history names and summary
* Improve ux by adding user_has_drafts to document pages.
* Changes because of implementation of active field on document_page
* Add ir.rules for document.page.history
* Allow to quickly cancel&draft from 'to approve' state
* FIX BUG: am_i_approver was being run as sudo(), hence always giving the user Approving rights.
* FIX hooks
  Because of default='draft' on the state field, state IS NULL wasn't selecting anything.
  Left the condition in case this is changed in the future.
2024-11-12 10:19:23 +01:00