Commit Graph

16 Commits

Author SHA1 Message Date
Víctor Martínez
d45dd7ff54 [FIX] document_page_approval: Add Change Request Manager rule
Steps to reproduce the error:
- Modify the content of a page (with a different user).
- Go to the Change request menu and Cancel the change.
- Click on the "Back to draft" button.
- An error will be displayed

TT55569
2025-03-28 16:27:00 +05:30
Bhavesh Heliconia
a53bc19077 [IMP] document_page_approval: pre-commit auto fixes 2025-02-28 09:42:12 +05:30
Víctor Martínez
f606356ca0 [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
2025-02-28 09:42:12 +05:30
EdgarRetes
a4972a014d [MIG] document_page_approval: Migration to 17.0 2025-02-28 09:42:12 +05:30
FernandoRomera
eb0953684b [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/
2025-02-28 09:42:12 +05:30
Pedro M. Baeza
705bf60493 [FIX] document_page_approval: Avoid W7940 (dangerous-view-replace-wo-priority) 2025-02-28 09:42:12 +05:30
flachica
cd6a16d839 Migrate to 13.0 document_page_approval
To pass test is necesary set approval required to False in demo data
2025-02-28 09:42:12 +05:30
flachica
8d8c8ac32a [IMP] document_page_approval: black, isort 2025-02-28 09:42:12 +05:30
Victor M.M. Torres
e1727575df [MIG] document_page_approval: Migration to v12
[UPD] Update document_page_approval.pot
2025-02-28 09:42:12 +05:30
mreficent
650170279d [FIX] pylint/javascript-lint
[ADD] icon.png
2025-02-28 09:42:12 +05:30
Iván Todorovich
6b2a0bf565 [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.
2025-02-28 09:42:12 +05:30
Gabriela Mogollon
ffb2adb712 [MIG] document_page_approval: Migration to 11.0 2025-02-28 09:42:12 +05:30
Iván Todorovich
afc1bf0423 [IMP][10.0][document_page_approval] Change Requests and workflow improvements on documents (#155) 2025-02-28 09:42:12 +05:30
Maxime Chambreuil
463bb6c611 [FIX] View 2025-02-28 09:42:12 +05:30
Leonardo Donelli
38b8c0f10c [MIG] document_page_approval: Migration to 10.0 2025-02-28 09:42:12 +05:30
Gervais Naoussi
f01154ab18 [MIG] document_page_approval: Migration to 9.0
* Lint error corrected
* test improved
* lint error corrected in test file
* readme corrected
* test improved
* test of document page history workflow added
* CI error corrected
* dreipst comment
* Migration to new api improved in model's file and data tag remove in xml file
* code totally migrate to odoo 9.0 api
* test bug fixed
* test error fixed
* Lint error improved
2025-02-28 09:42:12 +05:30