MCPcopy Create free account

hub / github.com/OCA/knowledge / functions

Functions971 in github.com/OCA/knowledge

Methodtest_approval_required
Test that the page requires approval.
document_page_approval/tests/test_document_page_approval.py:64
Methodtest_auto_reference
Test if reference is proposed when saving a page without one.
document_page_reference/tests/test_document_reference.py:45
Methodtest_cache_am_i_approver
Ensure 'am_i_approver' is computed per-user and not cached globally.
document_page_approval/tests/test_document_page_approval.py:285
Methodtest_cache_am_i_owner
Ensure 'am_i_owner' is computed per-user and not cached globally.
document_page_approval/tests/test_document_page_approval.py:295
Methodtest_cache_has_changes_pending_approval
Ensure 'has_changes_pending_approval' is computed per-user and not cached.
document_page_approval/tests/test_document_page_approval.py:330
Methodtest_cache_user_has_drafts
Ensure 'user_has_drafts' is computed per-user and not cached globally.
document_page_approval/tests/test_document_page_approval.py:313
Methodtest_can_user_approve_this_page
Check different approval conditions
document_page_approval/tests/test_document_page_approval.py:177
Methodtest_category_template
(self)
document_page/tests/test_document_page.py:26
Methodtest_change_request_approve
Test that an approver can approve a change request.
document_page_approval/tests/test_document_page_approval.py:72
Methodtest_change_request_auto_approve
Test that a page without approval required auto-approves changes.
document_page_approval/tests/test_document_page_approval.py:107
Methodtest_change_request_from_scratch
Test a full change request lifecycle from draft to approval.
document_page_approval/tests/test_document_page_approval.py:115
Methodtest_check_raw
(self)
document_page_reference/tests/test_document_reference.py:40
Methodtest_compute_approver_group_ids
Ensure approver groups are inherited correctly
document_page_approval/tests/test_document_page_approval.py:170
Methodtest_compute_content_parsed
(self)
document_page_reference/tests/test_document_reference.py:75
Methodtest_compute_is_approval_required
Ensure approval rules are inherited correctly
document_page_approval/tests/test_document_page_approval.py:163
Methodtest_constraint_invalid_task_different_project
Linking a task from a different project raises ValidationError.
document_page_project_task/tests/test_document_page.py:136
Methodtest_constraint_no_project_allows_any_tasks
Without project_id, tasks from any project can be linked.
document_page_project_task/tests/test_document_page.py:147
Methodtest_constraint_no_tasks_no_project
A page with no tasks and no project is valid.
document_page_project_task/tests/test_document_page.py:157
Methodtest_constraint_valid_tasks_same_project
Creating a page with tasks all from the same project is allowed.
document_page_project_task/tests/test_document_page.py:125
Methodtest_constraints_duplicate_reference
Should raise if reference is not unique (same as another).
document_page_reference/tests/test_document_reference.py:24
Methodtest_constraints_invalid_reference
Should raise if reference does not match the required pattern.
document_page_reference/tests/test_document_reference.py:29
Methodtest_create_page_with_multiple_tasks_same_project
A page can be linked to multiple tasks from the same project.
document_page_project_task/tests/test_document_page.py:174
Methodtest_create_temp_zip
(self)
attachment_zipped_download/tests/test_attachment_zipped_download.py:64
Methodtest_create_temp_zip_access_denined
(self)
attachment_zipped_download/tests/test_attachment_zipped_download.py:68
Methodtest_default_get_with_task_in_context
default_get fills task_ids and project_id from default_task_id context.
document_page_project_task/tests/test_document_page.py:108
Methodtest_diff_computation
Ensure document diff is calculated properly
document_page_approval/tests/test_document_page_approval.py:266
Methodtest_document_page_group
(self)
document_page_group/tests/test_document_page_group.py:34
Methodtest_document_page_role_access_01
(self)
document_page_access_group_user_role/tests/test_document_page_access_group_user_role.py:34
Methodtest_document_page_role_access_02
(self)
document_page_access_group_user_role/tests/test_document_page_access_group_user_role.py:42
Methodtest_document_page_role_misc
(self)
document_page_access_group_user_role/tests/test_document_page_access_group_user_role.py:29
Methodtest_document_page_tag
(self)
document_page_tag/tests/test_document_page_tag.py:10
Methodtest_dont_broke_default_compute_mimetype
(self)
document_url/tests/test_document_url.py:33
Methodtest_get_approvers_guids
Test that approver groups are properly assigned.
document_page_approval/tests/test_document_page_approval.py:152
Methodtest_get_extension
(self)
attachment_preview/tests/test_attachment_preview.py:11
Methodtest_get_formview_action
(self)
document_page_reference/tests/test_document_reference.py:62
Methodtest_get_page_url
Test that the page URL exists.
document_page_approval/tests/test_document_page_approval.py:157
Methodtest_inverse_content_replacement
(self)
document_page_reference/tests/test_document_reference.py:82
Methodtest_no_constrains
(self)
document_page_reference/tests/test_document_reference.py:34
Methodtest_onchange_project_cleared_keeps_tasks
Clearing the project does not remove linked tasks.
document_page_project_task/tests/test_document_page.py:90
Methodtest_onchange_project_id_filters_incompatible_tasks
When project changes, tasks not belonging to it are removed.
document_page_project_task/tests/test_document_page.py:58
Methodtest_onchange_project_id_keeps_compatible_tasks
Tasks already belonging to the selected project are kept.
document_page_project_task/tests/test_document_page.py:76
Methodtest_onchange_task_ids_does_not_fill_project_multiple_projects
When tasks span different projects, project is not auto-filled.
document_page_project_task/tests/test_document_page.py:35
Methodtest_onchange_task_ids_fills_project_single_project
When all tasks share the same project, it is auto-filled.
document_page_project_task/tests/test_document_page.py:23
Methodtest_onchange_task_ids_skips_when_project_already_set
When project is already set, onchange does not overwrite it.
document_page_project_task/tests/test_document_page.py:46
Methodtest_page_access_01
(self)
document_page_access_group/tests/test_document_page_access_group.py:15
Methodtest_page_access_02
(self)
document_page_access_group/tests/test_document_page_access_group.py:22
Methodtest_page_access_constrains
(self)
document_page_access_group/tests/test_document_page_access_group.py:10
Methodtest_page_copy
(self)
document_page/tests/test_document_page.py:55
Methodtest_page_count
(self)
document_page_product/tests/test_document_page_product.py:18
Methodtest_page_count
Page counter starts at zero and increments when a page is linked.
document_page_project_task/tests/test_project_task.py:20
Methodtest_page_count
(self)
document_page_project/tests/test_project_project.py:16
Methodtest_page_count_multiple_pages
Counter reflects the correct total when multiple pages are linked.
document_page_project_task/tests/test_project_task.py:47
Methodtest_page_creation
(self)
document_page/tests/test_document_page.py:13
Methodtest_page_history_demo_page1
Test page history demo page1.
document_page/tests/test_document_page_history.py:7
Methodtest_page_history_diff
(self)
document_page/tests/test_document_page.py:33
Methodtest_page_link
(self)
document_page/tests/test_document_page.py:40
Methodtest_page_linked_to_multiple_tasks
A single page can be linked to multiple tasks via M2M.
document_page_project_task/tests/test_project_task.py:74
Methodtest_page_menu_creation
Test page menu creation.
document_page/tests/test_document_page_create_menu.py:8
Methodtest_page_menu_parent_id_context
Test page menu parent_id context.
document_page/tests/test_document_page_create_menu.py:31
Methodtest_page_url_computation
Ensure page URLs are generated correctly
document_page_approval/tests/test_document_page_approval.py:261
Methodtest_pending_approval_detection
Ensure the system detects pending approval changes
document_page_approval/tests/test_document_page_approval.py:190
Methodtest_show_demo_page1_diff
Show test page history difference.
document_page/tests/test_document_page_show_diff.py:9
Methodtest_user_has_drafts
Ensure the system detects drafts correctly
document_page_approval/tests/test_document_page_approval.py:209
Methodtest_write_adding_incompatible_task_raises
Writing a task from a different project raises ValidationError.
document_page_project_task/tests/test_document_page.py:162
FunctiontoplevelPagesDict
()
attachment_preview/static/lib/ViewerJS/pdf.worker.js:3447
Functionuninstall_hook
(env)
document_page_approval/hooks.py:22
FunctionupdatePassword
(password)
attachment_preview/static/lib/ViewerJS/pdf.js:2628
FunctionupdateThreadAttachments
()
document_url/static/src/js/url.esm.js:30
Functionview
* @return {Array} An array of the visible portion of the PDF page in the * user space units - [x1, y1, x2, y2].
attachment_preview/static/lib/ViewerJS/pdf.js:2259
Functionview
()
attachment_preview/static/lib/ViewerJS/pdf.worker.js:2678
FunctionwatchScroll
* Helper function to start monitoring the scroll event and converting them into * PDF.js friendly one: with scroll debounce and scroll direction.
attachment_preview/static/lib/ViewerJS/ui_utils.js:152
← previous901–971 of 971, ranked by callers