shutro-erp 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account_asset/.kosh/bindings.js +15 -0
- package/dist/{mrp_account → account_asset}/.kosh/schema.d.ts +785 -614
- package/dist/account_asset/board.d.ts +61 -0
- package/dist/account_asset/board.js +86 -0
- package/dist/account_asset/books.d.ts +42 -0
- package/dist/account_asset/books.js +398 -0
- package/dist/account_asset/demo.d.ts +7 -0
- package/dist/account_asset/demo.js +72 -0
- package/dist/account_asset/i18n/bn.d.ts +2 -0
- package/dist/account_asset/i18n/bn.js +97 -0
- package/dist/account_asset/index.d.ts +9 -0
- package/dist/account_asset/index.js +337 -0
- package/dist/account_asset/module.d.ts +11076 -0
- package/dist/account_asset/module.js +230 -0
- package/dist/account_budget/.kosh/bindings.js +15 -0
- package/dist/account_budget/.kosh/schema.d.ts +2841 -0
- package/dist/account_budget/budget.d.ts +5 -0
- package/dist/account_budget/budget.js +142 -0
- package/dist/account_budget/demo.d.ts +6 -0
- package/dist/account_budget/demo.js +30 -0
- package/dist/account_budget/i18n/bn.d.ts +2 -0
- package/dist/account_budget/i18n/bn.js +63 -0
- package/dist/account_budget/index.d.ts +4 -0
- package/dist/account_budget/index.js +237 -0
- package/dist/account_budget/module.d.ts +27289 -0
- package/dist/account_budget/module.js +182 -0
- package/dist/account_portal/.kosh/bindings.js +1 -1
- package/dist/account_portal/.kosh/schema.d.ts +651 -10
- package/dist/account_portal/i18n/bn.d.ts +2 -0
- package/dist/account_portal/i18n/bn.js +6 -0
- package/dist/account_portal/index.js +2 -0
- package/dist/account_portal/module.d.ts +5212 -1592
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +651 -10
- package/dist/accounting/closing.js +1 -0
- package/dist/accounting/fiscal.d.ts +578 -0
- package/dist/accounting/fiscal.js +401 -0
- package/dist/accounting/followups.d.ts +618 -0
- package/dist/accounting/followups.js +420 -0
- package/dist/accounting/i18n/bn.d.ts +2 -0
- package/dist/accounting/i18n/bn.js +425 -0
- package/dist/accounting/index.d.ts +3 -1
- package/dist/accounting/index.js +780 -5
- package/dist/accounting/module.d.ts +5386 -1543
- package/dist/accounting/module.js +155 -18
- package/dist/accounting/statements.d.ts +878 -0
- package/dist/accounting/statements.js +728 -0
- package/dist/accounting/web/BankReconcilePage.d.ts +9 -0
- package/dist/accounting/web/BankReconcilePage.js +138 -0
- package/dist/accounting/web/FollowupsPage.d.ts +8 -0
- package/dist/accounting/web/FollowupsPage.js +54 -0
- package/dist/accounting/web/PostingPreview.d.ts +8 -0
- package/dist/accounting/web/PostingPreview.js +26 -0
- package/dist/accounting/web/index.d.ts +3 -0
- package/dist/accounting/web/index.js +9 -0
- package/dist/accounting/web/messages.js +140 -0
- package/dist/approvals/.kosh/bindings.d.ts +22 -0
- package/dist/approvals/.kosh/bindings.js +15 -0
- package/dist/approvals/.kosh/schema.d.ts +879 -0
- package/dist/approvals/demo.d.ts +7 -0
- package/dist/approvals/demo.js +41 -0
- package/dist/approvals/i18n/bn.d.ts +2 -0
- package/dist/approvals/i18n/bn.js +133 -0
- package/dist/approvals/index.d.ts +36 -0
- package/dist/approvals/index.js +772 -0
- package/dist/approvals/mails.d.ts +30 -0
- package/dist/approvals/mails.js +87 -0
- package/dist/approvals/module.d.ts +2930 -0
- package/dist/approvals/module.js +473 -0
- package/dist/approvals/web/Config.d.ts +12 -0
- package/dist/approvals/web/Config.js +60 -0
- package/dist/approvals/web/History.d.ts +4 -0
- package/dist/approvals/web/History.js +13 -0
- package/dist/approvals/web/Inbox.d.ts +9 -0
- package/dist/approvals/web/Inbox.js +114 -0
- package/dist/approvals/web/Matrix.d.ts +9 -0
- package/dist/approvals/web/Matrix.js +26 -0
- package/dist/approvals/web/Mine.d.ts +7 -0
- package/dist/approvals/web/Mine.js +27 -0
- package/dist/approvals/web/index.d.ts +15 -0
- package/dist/approvals/web/index.js +29 -0
- package/dist/approvals/web/messages.d.ts +2 -0
- package/dist/approvals/web/messages.js +211 -0
- package/dist/approvals/web/shared.d.ts +59 -0
- package/dist/approvals/web/shared.js +46 -0
- package/dist/approvals_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/approvals_purchase/.kosh/bindings.js +15 -0
- package/dist/approvals_purchase/.kosh/schema.d.ts +1997 -0
- package/dist/approvals_purchase/i18n/bn.d.ts +2 -0
- package/dist/approvals_purchase/i18n/bn.js +5 -0
- package/dist/approvals_purchase/index.d.ts +3 -0
- package/dist/approvals_purchase/index.js +47 -0
- package/dist/approvals_purchase/module.d.ts +12670 -0
- package/dist/approvals_purchase/module.js +84 -0
- package/dist/attendance/.kosh/bindings.d.ts +22 -0
- package/dist/attendance/.kosh/bindings.js +15 -0
- package/dist/attendance/.kosh/schema.d.ts +1106 -0
- package/dist/attendance/days.d.ts +96 -0
- package/dist/attendance/days.js +430 -0
- package/dist/attendance/demo.d.ts +7 -0
- package/dist/attendance/demo.js +58 -0
- package/dist/attendance/i18n/bn.d.ts +2 -0
- package/dist/attendance/i18n/bn.js +147 -0
- package/dist/attendance/index.d.ts +4 -0
- package/dist/attendance/index.js +515 -0
- package/dist/attendance/module.d.ts +4413 -0
- package/dist/attendance/module.js +412 -0
- package/dist/attendance/routes.d.ts +16 -0
- package/dist/attendance/routes.js +266 -0
- package/dist/attendance/web/Check.d.ts +8 -0
- package/dist/attendance/web/Check.js +40 -0
- package/dist/attendance/web/Kiosk.d.ts +8 -0
- package/dist/attendance/web/Kiosk.js +62 -0
- package/dist/attendance/web/PinButton.d.ts +7 -0
- package/dist/attendance/web/PinButton.js +29 -0
- package/dist/attendance/web/index.d.ts +13 -0
- package/dist/attendance/web/index.js +22 -0
- package/dist/attendance/web/messages.d.ts +2 -0
- package/dist/attendance/web/messages.js +61 -0
- package/dist/automation/engine.js +1 -1
- package/dist/calendar/.kosh/bindings.js +1 -1
- package/dist/calendar/.kosh/schema.d.ts +2 -1
- package/dist/calendar/i18n/bn.d.ts +2 -0
- package/dist/calendar/i18n/bn.js +80 -0
- package/dist/calendar/index.js +77 -0
- package/dist/calendar/module.d.ts +26 -0
- package/dist/calendar/module.js +14 -4
- package/dist/cli/apps.js +25 -5
- package/dist/cli/init.js +46 -4
- package/dist/cli/templates.d.ts +1 -1
- package/dist/cli/templates.js +123 -5
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +2 -1
- package/dist/contacts/i18n/bn.d.ts +2 -0
- package/dist/contacts/i18n/bn.js +67 -0
- package/dist/contacts/index.js +3 -0
- package/dist/contacts/module.d.ts +42 -0
- package/dist/contacts/module.js +19 -3
- package/dist/crm/.kosh/bindings.js +1 -1
- package/dist/crm/.kosh/schema.d.ts +3 -1
- package/dist/crm/i18n/bn.d.ts +2 -0
- package/dist/crm/i18n/bn.js +80 -0
- package/dist/crm/index.js +22 -0
- package/dist/crm/module.d.ts +22 -0
- package/dist/crm/module.js +6 -3
- package/dist/documents/.kosh/bindings.d.ts +22 -0
- package/dist/documents/.kosh/bindings.js +15 -0
- package/dist/documents/.kosh/schema.d.ts +863 -0
- package/dist/documents/demo.d.ts +6 -0
- package/dist/documents/demo.js +22 -0
- package/dist/documents/documents.d.ts +98 -0
- package/dist/documents/documents.js +318 -0
- package/dist/documents/i18n/bn.d.ts +2 -0
- package/dist/documents/i18n/bn.js +83 -0
- package/dist/documents/index.d.ts +30 -0
- package/dist/documents/index.js +569 -0
- package/dist/documents/module.d.ts +2801 -0
- package/dist/documents/module.js +215 -0
- package/dist/documents/web/Versions.d.ts +7 -0
- package/dist/documents/web/Versions.js +45 -0
- package/dist/documents/web/index.d.ts +11 -0
- package/dist/documents/web/index.js +16 -0
- package/dist/documents/web/messages.d.ts +2 -0
- package/dist/documents/web/messages.js +21 -0
- package/dist/event/.kosh/bindings.js +1 -1
- package/dist/event/.kosh/schema.d.ts +2 -1
- package/dist/event/i18n/bn.d.ts +2 -0
- package/dist/event/i18n/bn.js +101 -0
- package/dist/event/index.js +66 -0
- package/dist/event/module.d.ts +20 -0
- package/dist/event/module.js +8 -1
- package/dist/event_account/.kosh/bindings.js +1 -1
- package/dist/event_account/.kosh/schema.d.ts +651 -10
- package/dist/event_account/i18n/bn.d.ts +2 -0
- package/dist/event_account/i18n/bn.js +5 -0
- package/dist/event_account/index.js +2 -0
- package/dist/event_account/module.d.ts +5133 -1513
- package/dist/expense/.kosh/bindings.d.ts +22 -0
- package/dist/expense/.kosh/bindings.js +15 -0
- package/dist/expense/.kosh/schema.d.ts +1620 -0
- package/dist/expense/demo.d.ts +7 -0
- package/dist/expense/demo.js +69 -0
- package/dist/expense/i18n/bn.d.ts +2 -0
- package/dist/expense/i18n/bn.js +155 -0
- package/dist/expense/index.d.ts +3 -0
- package/dist/expense/index.js +502 -0
- package/dist/expense/module.d.ts +6768 -0
- package/dist/expense/module.js +649 -0
- package/dist/expense_account/.kosh/bindings.d.ts +22 -0
- package/dist/expense_account/.kosh/bindings.js +15 -0
- package/dist/expense_account/.kosh/schema.d.ts +2515 -0
- package/dist/expense_account/i18n/bn.d.ts +2 -0
- package/dist/expense_account/i18n/bn.js +15 -0
- package/dist/expense_account/index.d.ts +3 -0
- package/dist/expense_account/index.js +76 -0
- package/dist/expense_account/module.d.ts +14628 -0
- package/dist/expense_account/module.js +318 -0
- package/dist/helpdesk/.kosh/bindings.d.ts +22 -0
- package/dist/helpdesk/.kosh/bindings.js +15 -0
- package/dist/helpdesk/.kosh/schema.d.ts +886 -0
- package/dist/helpdesk/demo.d.ts +7 -0
- package/dist/helpdesk/demo.js +65 -0
- package/dist/helpdesk/hours.d.ts +17 -0
- package/dist/helpdesk/hours.js +94 -0
- package/dist/helpdesk/i18n/bn.d.ts +2 -0
- package/dist/helpdesk/i18n/bn.js +127 -0
- package/dist/helpdesk/index.d.ts +10 -0
- package/dist/helpdesk/index.js +463 -0
- package/dist/helpdesk/module.d.ts +2960 -0
- package/dist/helpdesk/module.js +326 -0
- package/dist/helpdesk/routes.d.ts +12 -0
- package/dist/helpdesk/routes.js +132 -0
- package/dist/helpdesk/sla.d.ts +37 -0
- package/dist/helpdesk/sla.js +226 -0
- package/dist/hr/.kosh/bindings.js +1 -1
- package/dist/hr/.kosh/schema.d.ts +59 -1
- package/dist/hr/demo.js +11 -1
- package/dist/hr/i18n/bn.d.ts +2 -0
- package/dist/hr/i18n/bn.js +126 -0
- package/dist/hr/index.d.ts +1 -1
- package/dist/hr/index.js +158 -12
- package/dist/hr/module.d.ts +932 -59
- package/dist/hr/module.js +114 -17
- package/dist/indent/.kosh/bindings.d.ts +22 -0
- package/dist/indent/.kosh/bindings.js +15 -0
- package/dist/indent/.kosh/schema.d.ts +2084 -0
- package/dist/indent/demo.d.ts +7 -0
- package/dist/indent/demo.js +48 -0
- package/dist/indent/i18n/bn.d.ts +2 -0
- package/dist/indent/i18n/bn.js +143 -0
- package/dist/indent/index.d.ts +3 -0
- package/dist/indent/index.js +450 -0
- package/dist/indent/module.d.ts +13424 -0
- package/dist/indent/module.js +792 -0
- package/dist/indent_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/indent_purchase/.kosh/bindings.js +15 -0
- package/dist/indent_purchase/.kosh/schema.d.ts +2710 -0
- package/dist/indent_purchase/i18n/bn.d.ts +2 -0
- package/dist/indent_purchase/i18n/bn.js +13 -0
- package/dist/indent_purchase/index.d.ts +3 -0
- package/dist/indent_purchase/index.js +61 -0
- package/dist/indent_purchase/module.d.ts +27950 -0
- package/dist/indent_purchase/module.js +163 -0
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +651 -10
- package/dist/l10n_bd/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd/i18n/bn.js +69 -0
- package/dist/l10n_bd/index.js +2 -0
- package/dist/l10n_bd/module.d.ts +5212 -1592
- package/dist/l10n_bd_payroll/.kosh/bindings.d.ts +22 -0
- package/dist/l10n_bd_payroll/.kosh/bindings.js +15 -0
- package/dist/l10n_bd_payroll/.kosh/schema.d.ts +2891 -0
- package/dist/l10n_bd_payroll/data.d.ts +47 -0
- package/dist/l10n_bd_payroll/data.js +347 -0
- package/dist/l10n_bd_payroll/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd_payroll/i18n/bn.js +4 -0
- package/dist/l10n_bd_payroll/index.d.ts +4 -0
- package/dist/l10n_bd_payroll/index.js +26 -0
- package/dist/l10n_bd_payroll/module.d.ts +17294 -0
- package/dist/l10n_bd_payroll/module.js +86 -0
- package/dist/l10n_bd_pos/.kosh/bindings.d.ts +22 -0
- package/dist/{mrp_account → l10n_bd_pos}/.kosh/bindings.js +2 -2
- package/dist/l10n_bd_pos/.kosh/schema.d.ts +2341 -0
- package/dist/l10n_bd_pos/i18n/bn.d.ts +2 -0
- package/dist/l10n_bd_pos/i18n/bn.js +32 -0
- package/dist/l10n_bd_pos/index.d.ts +3 -0
- package/dist/l10n_bd_pos/index.js +111 -0
- package/dist/{mrp_account → l10n_bd_pos}/module.d.ts +9047 -6981
- package/dist/l10n_bd_pos/module.js +43 -0
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +651 -10
- package/dist/l10n_in/i18n/bn.d.ts +2 -0
- package/dist/l10n_in/i18n/bn.js +95 -0
- package/dist/l10n_in/index.js +2 -0
- package/dist/l10n_in/module.d.ts +6778 -1580
- package/dist/l10n_in/module.js +25 -5
- package/dist/l10n_in/web/GstSettings.js +2 -2
- package/dist/mail/inbound/handle.js +8 -5
- package/dist/mail/inbound/models.js +5 -3
- package/dist/mail/index.d.ts +12 -1
- package/dist/mail/index.js +139 -2
- package/dist/mail/send.d.ts +56 -0
- package/dist/mail/send.js +394 -0
- package/dist/mail/web/SendButton.d.ts +9 -0
- package/dist/mail/web/SendButton.js +71 -0
- package/dist/mail/web/SendSelected.d.ts +8 -0
- package/dist/mail/web/SendSelected.js +33 -0
- package/dist/mail/web/index.d.ts +2 -0
- package/dist/mail/web/index.js +6 -0
- package/dist/mail/web/messages.js +36 -0
- package/dist/maintenance/.kosh/bindings.js +1 -1
- package/dist/maintenance/.kosh/schema.d.ts +2 -1
- package/dist/maintenance/i18n/bn.d.ts +2 -0
- package/dist/maintenance/i18n/bn.js +132 -0
- package/dist/maintenance/index.js +85 -0
- package/dist/maintenance/module.d.ts +25 -0
- package/dist/maintenance/module.js +27 -9
- package/dist/maintenance_stock/.kosh/bindings.js +1 -1
- package/dist/maintenance_stock/.kosh/schema.d.ts +374 -3
- package/dist/maintenance_stock/i18n/bn.d.ts +2 -0
- package/dist/maintenance_stock/i18n/bn.js +21 -0
- package/dist/maintenance_stock/index.js +2 -0
- package/dist/maintenance_stock/module.d.ts +6095 -1327
- package/dist/maintenance_stock/module.js +1 -0
- package/dist/modules-sdk/apps.d.ts +10 -0
- package/dist/modules-sdk/apps.js +32 -0
- package/dist/modules-sdk/index.d.ts +1 -1
- package/dist/modules-sdk/manifest.d.ts +105 -2
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +653 -11
- package/dist/payment/i18n/bn.d.ts +2 -0
- package/dist/payment/i18n/bn.js +59 -0
- package/dist/payment/index.d.ts +41 -0
- package/dist/payment/index.js +216 -74
- package/dist/payment/module.d.ts +5353 -1675
- package/dist/payment/module.js +36 -6
- package/dist/payment/settle.js +11 -1
- package/dist/payroll/.kosh/bindings.d.ts +22 -0
- package/dist/payroll/.kosh/bindings.js +15 -0
- package/dist/payroll/.kosh/schema.d.ts +1448 -0
- package/dist/payroll/compute.d.ts +35 -0
- package/dist/payroll/compute.js +398 -0
- package/dist/payroll/demo.d.ts +55 -0
- package/dist/payroll/demo.js +121 -0
- package/dist/payroll/formula.d.ts +62 -0
- package/dist/payroll/formula.js +320 -0
- package/dist/payroll/i18n/bn.d.ts +2 -0
- package/dist/payroll/i18n/bn.js +206 -0
- package/dist/payroll/index.d.ts +230 -0
- package/dist/payroll/index.js +715 -0
- package/dist/{mrp → payroll}/module.d.ts +4294 -2624
- package/dist/payroll/module.js +606 -0
- package/dist/payroll/routes.d.ts +10 -0
- package/dist/payroll/routes.js +112 -0
- package/dist/payroll_account/.kosh/bindings.d.ts +22 -0
- package/dist/payroll_account/.kosh/bindings.js +15 -0
- package/dist/payroll_account/.kosh/schema.d.ts +2887 -0
- package/dist/payroll_account/i18n/bn.d.ts +2 -0
- package/dist/payroll_account/i18n/bn.js +10 -0
- package/dist/payroll_account/index.d.ts +3 -0
- package/dist/payroll_account/index.js +42 -0
- package/dist/payroll_account/module.d.ts +16738 -0
- package/dist/payroll_account/module.js +256 -0
- package/dist/permissions/approvals.d.ts +227 -12
- package/dist/permissions/approvals.js +1421 -67
- package/dist/permissions/index.d.ts +1 -1
- package/dist/permissions/index.js +2 -2
- package/dist/permissions/models.js +364 -13
- package/dist/permissions/routes.d.ts +9 -1
- package/dist/permissions/routes.js +72 -5
- package/dist/permissions/web/ApprovalPanel.d.ts +5 -4
- package/dist/permissions/web/ApprovalPanel.js +75 -11
- package/dist/permissions/web/index.d.ts +6 -4
- package/dist/permissions/web/index.js +13 -4
- package/dist/permissions/web/messages.d.ts +2 -0
- package/dist/permissions/web/messages.js +95 -0
- package/dist/portal/.kosh/bindings.js +1 -1
- package/dist/portal/.kosh/schema.d.ts +2 -1
- package/dist/portal/documents.d.ts +3 -0
- package/dist/portal/documents.js +21 -1
- package/dist/portal/i18n/bn.d.ts +2 -0
- package/dist/portal/i18n/bn.js +33 -0
- package/dist/portal/index.js +3 -1
- package/dist/portal/module.d.ts +20 -0
- package/dist/portal/routes-documents.js +76 -0
- package/dist/pos/.kosh/bindings.js +1 -1
- package/dist/pos/.kosh/schema.d.ts +652 -10
- package/dist/pos/i18n/bn.d.ts +2 -0
- package/dist/pos/i18n/bn.js +133 -0
- package/dist/pos/index.js +87 -1
- package/dist/pos/module.d.ts +6967 -1709
- package/dist/pos/module.js +49 -5
- package/dist/pos/routes.js +80 -7
- package/dist/pos/web/Register.js +2 -5
- package/dist/pos_stock/.kosh/bindings.js +1 -1
- package/dist/pos_stock/.kosh/schema.d.ts +822 -12
- package/dist/pos_stock/i18n/bn.d.ts +2 -0
- package/dist/pos_stock/i18n/bn.js +6 -0
- package/dist/pos_stock/index.js +2 -0
- package/dist/pos_stock/module.d.ts +11241 -2851
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +203 -1
- package/dist/product/i18n/bn.d.ts +2 -0
- package/dist/product/i18n/bn.js +175 -0
- package/dist/product/index.d.ts +1 -0
- package/dist/product/index.js +301 -1
- package/dist/product/module.d.ts +1727 -0
- package/dist/product/module.js +67 -6
- package/dist/product/pricelist.d.ts +575 -0
- package/dist/product/pricelist.js +257 -0
- package/dist/product/variants.d.ts +908 -0
- package/dist/product/variants.js +251 -0
- package/dist/production/.kosh/bindings.d.ts +22 -0
- package/dist/production/.kosh/bindings.js +15 -0
- package/dist/production/.kosh/schema.d.ts +2345 -0
- package/dist/{mrp → production}/demo.d.ts +1 -1
- package/dist/{mrp → production}/demo.js +5 -5
- package/dist/production/depth.d.ts +790 -0
- package/dist/production/depth.js +262 -0
- package/dist/production/i18n/bn.d.ts +2 -0
- package/dist/production/i18n/bn.js +350 -0
- package/dist/production/index.d.ts +6 -0
- package/dist/production/index.js +1256 -0
- package/dist/production/module.d.ts +17327 -0
- package/dist/production/module.js +1333 -0
- package/dist/production/plan.d.ts +921 -0
- package/dist/production/plan.js +511 -0
- package/dist/production/schedule.d.ts +656 -0
- package/dist/production/schedule.js +309 -0
- package/dist/production_account/.kosh/bindings.d.ts +22 -0
- package/dist/production_account/.kosh/bindings.js +15 -0
- package/dist/production_account/.kosh/schema.d.ts +3496 -0
- package/dist/production_account/i18n/bn.d.ts +2 -0
- package/dist/production_account/i18n/bn.js +93 -0
- package/dist/production_account/index.d.ts +4 -0
- package/dist/production_account/index.js +246 -0
- package/dist/production_account/module.d.ts +1192 -0
- package/dist/{mrp_account → production_account}/module.js +72 -18
- package/dist/production_account/overhead.d.ts +1195 -0
- package/dist/production_account/overhead.js +554 -0
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +735 -1
- package/dist/project/i18n/bn.d.ts +2 -0
- package/dist/project/i18n/bn.js +383 -0
- package/dist/project/index.d.ts +3 -1
- package/dist/project/index.js +1024 -14
- package/dist/project/module.d.ts +9912 -390
- package/dist/project/module.js +1590 -14
- package/dist/project/routes.d.ts +44 -0
- package/dist/project/routes.js +314 -0
- package/dist/project/schedule.d.ts +72 -0
- package/dist/project/schedule.js +192 -0
- package/dist/project/web/Refresh.d.ts +8 -0
- package/dist/project/web/Refresh.js +29 -0
- package/dist/project/web/Schedule.d.ts +9 -0
- package/dist/project/web/Schedule.js +93 -0
- package/dist/project/web/Structure.d.ts +8 -0
- package/dist/project/web/Structure.js +86 -0
- package/dist/project/web/Workload.d.ts +8 -0
- package/dist/project/web/Workload.js +43 -0
- package/dist/project/web/index.d.ts +14 -0
- package/dist/project/web/index.js +25 -0
- package/dist/project/web/messages.d.ts +2 -0
- package/dist/project/web/messages.js +85 -0
- package/dist/project_account/.kosh/bindings.d.ts +22 -0
- package/dist/project_account/.kosh/bindings.js +15 -0
- package/dist/project_account/.kosh/schema.d.ts +2763 -0
- package/dist/project_account/i18n/bn.d.ts +2 -0
- package/dist/project_account/i18n/bn.js +6 -0
- package/dist/project_account/index.d.ts +3 -0
- package/dist/project_account/index.js +29 -0
- package/dist/project_account/module.d.ts +15013 -0
- package/dist/project_account/module.js +76 -0
- package/dist/project_portal/.kosh/bindings.js +1 -1
- package/dist/project_portal/.kosh/schema.d.ts +735 -1
- package/dist/project_portal/i18n/bn.d.ts +2 -0
- package/dist/project_portal/i18n/bn.js +6 -0
- package/dist/project_portal/index.js +2 -0
- package/dist/project_portal/module.d.ts +4796 -87
- package/dist/project_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/project_purchase/.kosh/bindings.js +15 -0
- package/dist/project_purchase/.kosh/schema.d.ts +3393 -0
- package/dist/project_purchase/i18n/bn.d.ts +2 -0
- package/dist/project_purchase/i18n/bn.js +4 -0
- package/dist/project_purchase/index.d.ts +9 -0
- package/dist/project_purchase/index.js +24 -0
- package/dist/project_purchase/module.d.ts +38613 -0
- package/dist/project_purchase/module.js +56 -0
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +908 -5
- package/dist/purchase/comparison.d.ts +993 -0
- package/dist/purchase/comparison.js +415 -0
- package/dist/purchase/extras.d.ts +1509 -0
- package/dist/purchase/extras.js +445 -0
- package/dist/purchase/i18n/bn.d.ts +2 -0
- package/dist/purchase/i18n/bn.js +413 -0
- package/dist/purchase/index.d.ts +5 -0
- package/dist/purchase/index.js +1280 -4
- package/dist/purchase/module.d.ts +7147 -395
- package/dist/purchase/module.js +303 -10
- package/dist/purchase/request.d.ts +696 -0
- package/dist/purchase/request.js +446 -0
- package/dist/purchase/tender.d.ts +1208 -0
- package/dist/purchase/tender.js +507 -0
- package/dist/purchase/vendorprice.d.ts +340 -0
- package/dist/purchase/vendorprice.js +153 -0
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +1209 -16
- package/dist/purchase_account/i18n/bn.d.ts +2 -0
- package/dist/purchase_account/i18n/bn.js +22 -0
- package/dist/purchase_account/index.js +20 -0
- package/dist/purchase_account/module.d.ts +12232 -2028
- package/dist/purchase_account/module.js +252 -9
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +908 -5
- package/dist/purchase_portal/i18n/bn.d.ts +2 -0
- package/dist/purchase_portal/i18n/bn.js +5 -0
- package/dist/purchase_portal/index.js +2 -0
- package/dist/purchase_portal/module.d.ts +6853 -352
- package/dist/purchase_stock/.kosh/bindings.js +1 -1
- package/dist/purchase_stock/.kosh/schema.d.ts +1096 -21
- package/dist/purchase_stock/i18n/bn.d.ts +2 -0
- package/dist/purchase_stock/i18n/bn.js +19 -0
- package/dist/purchase_stock/index.d.ts +2 -2
- package/dist/purchase_stock/index.js +38 -2
- package/dist/purchase_stock/module.d.ts +12930 -1612
- package/dist/purchase_stock/module.js +317 -9
- package/dist/purchase_stock/scorecard.d.ts +22 -0
- package/dist/purchase_stock/scorecard.js +77 -0
- package/dist/purchase_stock/web/Scorecard.d.ts +7 -0
- package/dist/purchase_stock/web/Scorecard.js +22 -0
- package/dist/purchase_stock/web/index.d.ts +11 -0
- package/dist/purchase_stock/web/index.js +16 -0
- package/dist/purchase_stock/web/messages.d.ts +2 -0
- package/dist/purchase_stock/web/messages.js +27 -0
- package/dist/purchase_stock_account/.kosh/bindings.js +1 -1
- package/dist/purchase_stock_account/.kosh/schema.d.ts +1444 -20
- package/dist/purchase_stock_account/i18n/bn.d.ts +2 -0
- package/dist/purchase_stock_account/i18n/bn.js +8 -0
- package/dist/purchase_stock_account/index.js +18 -0
- package/dist/purchase_stock_account/module.d.ts +7 -35346
- package/dist/purchase_stock_account/module.js +35 -8
- package/dist/recruitment/.kosh/bindings.js +1 -1
- package/dist/recruitment/.kosh/schema.d.ts +60 -1
- package/dist/recruitment/i18n/bn.d.ts +2 -0
- package/dist/recruitment/i18n/bn.js +93 -0
- package/dist/recruitment/index.js +64 -0
- package/dist/recruitment/module.d.ts +460 -8
- package/dist/recruitment/module.js +13 -4
- package/dist/reporting/documents.d.ts +5 -0
- package/dist/reporting/documents.js +11 -1
- package/dist/reporting/index.d.ts +1 -1
- package/dist/reporting/index.js +1 -1
- package/dist/reporting/web/CalendarView.d.ts +18 -5
- package/dist/reporting/web/CalendarView.js +163 -29
- package/dist/reporting/web/messages.js +18 -0
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +763 -18
- package/dist/sale_account/i18n/bn.d.ts +2 -0
- package/dist/sale_account/i18n/bn.js +48 -0
- package/dist/sale_account/index.d.ts +1 -1
- package/dist/sale_account/index.js +102 -4
- package/dist/sale_account/module.d.ts +8241 -2052
- package/dist/sale_account/module.js +535 -46
- package/dist/sale_crm/.kosh/bindings.d.ts +22 -0
- package/dist/sale_crm/.kosh/bindings.js +15 -0
- package/dist/{mrp → sale_crm}/.kosh/schema.d.ts +391 -494
- package/dist/sale_crm/i18n/bn.d.ts +2 -0
- package/dist/sale_crm/i18n/bn.js +9 -0
- package/dist/sale_crm/index.d.ts +7 -0
- package/dist/sale_crm/index.js +104 -0
- package/dist/sale_crm/module.d.ts +5609 -0
- package/dist/sale_crm/module.js +73 -0
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +292 -4
- package/dist/sale_portal/i18n/bn.d.ts +2 -0
- package/dist/sale_portal/i18n/bn.js +7 -0
- package/dist/sale_portal/index.js +10 -0
- package/dist/sale_portal/module.d.ts +2563 -292
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +1025 -4
- package/dist/sale_project/i18n/bn.d.ts +2 -0
- package/dist/sale_project/i18n/bn.js +12 -0
- package/dist/sale_project/index.js +2 -0
- package/dist/sale_project/module.d.ts +9280 -762
- package/dist/sale_project/module.js +17 -1
- package/dist/sale_stock/.kosh/bindings.js +1 -1
- package/dist/sale_stock/.kosh/schema.d.ts +463 -6
- package/dist/sale_stock/i18n/bn.d.ts +2 -0
- package/dist/sale_stock/i18n/bn.js +15 -0
- package/dist/sale_stock/index.js +2 -0
- package/dist/sale_stock/module.d.ts +8355 -1334
- package/dist/sale_stock/module.js +20 -3
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +292 -4
- package/dist/sales/i18n/bn.d.ts +2 -0
- package/dist/sales/i18n/bn.js +128 -0
- package/dist/sales/index.js +124 -5
- package/dist/sales/module.d.ts +3568 -633
- package/dist/sales/module.js +306 -11
- package/dist/server/api/duplicate.d.ts +14 -0
- package/dist/server/api/duplicate.js +75 -0
- package/dist/server/api/explain.d.ts +70 -0
- package/dist/server/api/explain.js +111 -0
- package/dist/server/api/metadata.d.ts +2 -0
- package/dist/server/api/metadata.js +9 -0
- package/dist/server/api/openapi.js +15 -0
- package/dist/server/api/rest.d.ts +1 -0
- package/dist/server/api/rest.js +76 -12
- package/dist/server/api/views.js +1 -1
- package/dist/server/apps.d.ts +16 -1
- package/dist/server/apps.js +164 -2
- package/dist/server/auth/base.js +2 -0
- package/dist/server/auth/service.d.ts +8 -0
- package/dist/server/auth/service.js +19 -0
- package/dist/server/events.d.ts +13 -0
- package/dist/server/events.js +22 -0
- package/dist/server/i18n.d.ts +27 -0
- package/dist/server/i18n.js +143 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +2 -0
- package/dist/server/server.js +6 -0
- package/dist/settings/company.d.ts +3 -1
- package/dist/settings/company.js +26 -5
- package/dist/settings/routes.d.ts +10 -0
- package/dist/settings/routes.js +19 -3
- package/dist/settings/web/AppsPage.d.ts +3 -2
- package/dist/settings/web/AppsPage.js +26 -8
- package/dist/settings/web/CompaniesPage.js +91 -6
- package/dist/settings/web/messages.js +64 -0
- package/dist/sign/.kosh/bindings.d.ts +22 -0
- package/dist/{mrp → sign}/.kosh/bindings.js +2 -2
- package/dist/sign/.kosh/schema.d.ts +991 -0
- package/dist/sign/i18n/bn.d.ts +2 -0
- package/dist/sign/i18n/bn.js +97 -0
- package/dist/sign/index.d.ts +29 -0
- package/dist/sign/index.js +478 -0
- package/dist/sign/module.d.ts +4518 -0
- package/dist/sign/module.js +167 -0
- package/dist/sign/sign.d.ts +82 -0
- package/dist/sign/sign.js +474 -0
- package/dist/stock/.kosh/bindings.js +1 -1
- package/dist/stock/.kosh/schema.d.ts +374 -3
- package/dist/stock/demo.d.ts +2 -1
- package/dist/stock/demo.js +28 -1
- package/dist/stock/i18n/bn.d.ts +2 -0
- package/dist/stock/i18n/bn.js +311 -0
- package/dist/stock/index.d.ts +4 -1
- package/dist/stock/index.js +674 -6
- package/dist/stock/ledger.d.ts +78 -0
- package/dist/stock/ledger.js +582 -0
- package/dist/stock/module.d.ts +6142 -1380
- package/dist/stock/module.js +780 -26
- package/dist/stock/replenish.d.ts +38 -0
- package/dist/stock/replenish.js +191 -0
- package/dist/stock/returns.d.ts +157 -0
- package/dist/stock/returns.js +163 -0
- package/dist/stock/web/Ledger.d.ts +9 -0
- package/dist/stock/web/Ledger.js +108 -0
- package/dist/stock/web/Operations.d.ts +8 -0
- package/dist/stock/web/Operations.js +33 -0
- package/dist/stock/web/Replenishment.d.ts +8 -0
- package/dist/stock/web/Replenishment.js +84 -0
- package/dist/stock/web/ReturnButton.d.ts +7 -0
- package/dist/stock/web/ReturnButton.js +62 -0
- package/dist/stock/web/index.d.ts +7 -2
- package/dist/stock/web/index.js +15 -2
- package/dist/stock/web/messages.js +206 -0
- package/dist/stock_account/.kosh/bindings.js +1 -1
- package/dist/stock_account/.kosh/schema.d.ts +878 -12
- package/dist/stock_account/i18n/bn.d.ts +2 -0
- package/dist/stock_account/i18n/bn.js +73 -0
- package/dist/stock_account/index.d.ts +1 -0
- package/dist/stock_account/index.js +141 -3
- package/dist/stock_account/landed.d.ts +429 -0
- package/dist/stock_account/landed.js +335 -0
- package/dist/stock_account/module.d.ts +12143 -3391
- package/dist/stock_account/module.js +135 -6
- package/dist/stock_account/web/LandedPreview.d.ts +7 -0
- package/dist/stock_account/web/LandedPreview.js +23 -0
- package/dist/stock_account/web/index.d.ts +11 -0
- package/dist/stock_account/web/index.js +16 -0
- package/dist/stock_account/web/messages.d.ts +2 -0
- package/dist/stock_account/web/messages.js +27 -0
- package/dist/todo/i18n/bn.d.ts +2 -0
- package/dist/todo/i18n/bn.js +66 -0
- package/dist/todo/index.js +59 -0
- package/dist/todo/module.d.ts +5 -0
- package/dist/todo/module.js +5 -3
- package/dist/trade_finance/.kosh/bindings.js +1 -1
- package/dist/trade_finance/.kosh/schema.d.ts +2 -1
- package/dist/trade_finance/i18n/bn.d.ts +2 -0
- package/dist/trade_finance/i18n/bn.js +162 -0
- package/dist/trade_finance/index.js +95 -0
- package/dist/trade_finance/module.d.ts +26 -0
- package/dist/trade_finance/module.js +29 -8
- package/dist/trade_finance_account/.kosh/bindings.js +1 -1
- package/dist/trade_finance_account/.kosh/schema.d.ts +651 -10
- package/dist/trade_finance_account/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_account/i18n/bn.js +27 -0
- package/dist/trade_finance_account/index.js +3 -0
- package/dist/trade_finance_account/module.d.ts +5129 -1509
- package/dist/trade_finance_account/module.js +2 -0
- package/dist/trade_finance_purchase/.kosh/bindings.js +1 -1
- package/dist/trade_finance_purchase/.kosh/schema.d.ts +908 -5
- package/dist/trade_finance_purchase/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_purchase/i18n/bn.js +6 -0
- package/dist/trade_finance_purchase/index.js +2 -0
- package/dist/trade_finance_purchase/module.d.ts +6909 -408
- package/dist/trade_finance_sale/.kosh/bindings.js +1 -1
- package/dist/trade_finance_sale/.kosh/schema.d.ts +292 -4
- package/dist/trade_finance_sale/i18n/bn.d.ts +2 -0
- package/dist/trade_finance_sale/i18n/bn.js +6 -0
- package/dist/trade_finance_sale/index.js +2 -0
- package/dist/trade_finance_sale/module.d.ts +2602 -331
- package/dist/ui/api.d.ts +2 -0
- package/dist/ui/app.d.ts +9 -0
- package/dist/ui/app.js +47 -15
- package/dist/ui/components/AppIcon.js +9 -2
- package/dist/ui/components/Explain.d.ts +69 -0
- package/dist/ui/components/Explain.js +62 -0
- package/dist/ui/context.d.ts +8 -1
- package/dist/ui/context.js +34 -1
- package/dist/ui/i18n/messages.d.ts +40 -0
- package/dist/ui/i18n/messages.js +80 -0
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/registry.d.ts +14 -0
- package/dist/ui/registry.js +10 -0
- package/dist/ui/views/FormView.d.ts +6 -0
- package/dist/ui/views/FormView.js +51 -12
- package/dist/ui/views/KanbanView.js +9 -1
- package/dist/ui/views/ListView.d.ts +8 -0
- package/dist/ui/views/ListView.js +14 -5
- package/dist/ui/views/StatsRow.js +2 -1
- package/dist/ui/views/widgets.js +7 -1
- package/dist/views/extend.js +12 -0
- package/dist/views/types.d.ts +13 -2
- package/dist/views/validate.js +8 -1
- package/dist/website/.kosh/bindings.js +1 -1
- package/dist/website/.kosh/schema.d.ts +2 -1
- package/dist/website/i18n/bn.d.ts +2 -0
- package/dist/website/i18n/bn.js +113 -0
- package/dist/website/index.js +37 -0
- package/dist/website/module.d.ts +20 -0
- package/dist/website/module.js +30 -5
- package/dist/website_crm/.kosh/bindings.js +1 -1
- package/dist/website_crm/.kosh/schema.d.ts +3 -1
- package/dist/website_crm/i18n/bn.d.ts +2 -0
- package/dist/website_crm/i18n/bn.js +5 -0
- package/dist/website_crm/index.js +2 -0
- package/dist/website_crm/module.d.ts +41 -0
- package/dist/website_sale/.kosh/bindings.d.ts +22 -0
- package/dist/website_sale/.kosh/bindings.js +15 -0
- package/dist/website_sale/.kosh/schema.d.ts +2909 -0
- package/dist/website_sale/couriers.d.ts +50 -0
- package/dist/website_sale/couriers.js +59 -0
- package/dist/website_sale/demo.d.ts +7 -0
- package/dist/website_sale/demo.js +90 -0
- package/dist/website_sale/growth.d.ts +31 -0
- package/dist/website_sale/growth.js +163 -0
- package/dist/website_sale/i18n/bn.d.ts +2 -0
- package/dist/website_sale/i18n/bn.js +132 -0
- package/dist/website_sale/index.d.ts +49 -0
- package/dist/website_sale/index.js +620 -0
- package/dist/website_sale/module.d.ts +35182 -0
- package/dist/website_sale/module.js +419 -0
- package/dist/website_sale/shipments.d.ts +16 -0
- package/dist/website_sale/shipments.js +113 -0
- package/dist/website_sale/shop.d.ts +81 -0
- package/dist/website_sale/shop.js +662 -0
- package/dist/website_sale_stock/.kosh/bindings.d.ts +22 -0
- package/dist/website_sale_stock/.kosh/bindings.js +15 -0
- package/dist/website_sale_stock/.kosh/schema.d.ts +3400 -0
- package/dist/website_sale_stock/i18n/bn.d.ts +2 -0
- package/dist/website_sale_stock/i18n/bn.js +4 -0
- package/dist/website_sale_stock/index.d.ts +9 -0
- package/dist/website_sale_stock/index.js +22 -0
- package/dist/website_sale_stock/module.d.ts +11 -0
- package/dist/website_sale_stock/module.js +32 -0
- package/package.json +117 -8
- package/dist/mrp/index.d.ts +0 -3
- package/dist/mrp/index.js +0 -392
- package/dist/mrp/module.js +0 -695
- package/dist/mrp_account/index.d.ts +0 -3
- package/dist/mrp_account/index.js +0 -22
- /package/dist/{mrp → account_asset}/.kosh/bindings.d.ts +0 -0
- /package/dist/{mrp_account → account_budget}/.kosh/bindings.d.ts +0 -0
package/dist/project/index.js
CHANGED
|
@@ -7,12 +7,16 @@
|
|
|
7
7
|
import { contacts } from '../contacts/index.js';
|
|
8
8
|
import { messaging } from '../messaging/index.js';
|
|
9
9
|
import { defineModule } from '../modules-sdk/index.js';
|
|
10
|
+
import { permissions } from '../permissions/index.js';
|
|
10
11
|
import { reporting } from '../reporting/index.js';
|
|
11
|
-
import { action, calendar, form, gantt, kanban, list, pivot, search } from '../views/index.js';
|
|
12
|
+
import { action, calendar, form, gantt, hierarchy, kanban, list, pivot, search } from '../views/index.js';
|
|
12
13
|
import { projectDemo, SUPPORT_PROJECT } from './demo.js';
|
|
13
|
-
import { ProjectProject, ProjectTask, ProjectTaskStage, ProjectTimesheet, projectShutro, } from './module.js';
|
|
14
|
+
import { ProjectBudgetLine, ProjectChange, ProjectIssue, ProjectMember, ProjectPhase, ProjectPlan, ProjectProject, ProjectRisk, ProjectRole, ProjectStatusReport, ProjectTag, ProjectTask, ProjectTaskCategory, ProjectTaskLink, ProjectTaskStage, ProjectTimesheet, ProjectType, ProjectWorkPackage, projectShutro, } from './module.js';
|
|
15
|
+
import { registerProjectRoutes } from './routes.js';
|
|
14
16
|
export { SUPPORT_PROJECT } from './demo.js';
|
|
15
|
-
export { ProjectProject, ProjectTask, ProjectTaskStage, ProjectTimesheet, projectShutro, } from './module.js';
|
|
17
|
+
export { configureProjectChatter, HEALTH, judgeHealth, ProjectBudgetLine, ProjectChange, ProjectIssue, ProjectMember, ProjectPhase, ProjectPlan, ProjectProject, ProjectRisk, ProjectRole, ProjectStatusReport, ProjectTag, ProjectTask, ProjectTaskCategory, ProjectTaskLink, ProjectTaskStage, ProjectTimesheet, ProjectType, ProjectWorkPackage, peakAllocation, projectShutro, riskLevel, } from './module.js';
|
|
18
|
+
export { mondayOf, refreshProjects, shiftDate, workload } from './routes.js';
|
|
19
|
+
export { criticalPath, scheduleOf, slipMoves } from './schedule.js';
|
|
16
20
|
export const project = defineModule({
|
|
17
21
|
shutro: projectShutro,
|
|
18
22
|
kosh: '^0.1.0',
|
|
@@ -39,6 +43,33 @@ export const project = defineModule({
|
|
|
39
43
|
},
|
|
40
44
|
],
|
|
41
45
|
},
|
|
46
|
+
{
|
|
47
|
+
key: 'health',
|
|
48
|
+
label: 'Health',
|
|
49
|
+
description: 'When a project shows at risk or off track: how far behind its schedule, how much of its budget used.',
|
|
50
|
+
keywords: 'health schedule behind budget risk off track',
|
|
51
|
+
scope: 'company',
|
|
52
|
+
editors: ['project.manager'],
|
|
53
|
+
fields: [
|
|
54
|
+
{ key: 'projectHealthBehindRisk', min: 0 },
|
|
55
|
+
{ key: 'projectHealthBehindOff', min: 0 },
|
|
56
|
+
{ key: 'projectHealthCostRisk', min: 0 },
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
key: 'plans',
|
|
61
|
+
label: 'Plans',
|
|
62
|
+
description: 'Whether a project starts only from an approved plan.',
|
|
63
|
+
keywords: 'plan approval require proposal budget',
|
|
64
|
+
scope: 'company',
|
|
65
|
+
editors: ['project.manager'],
|
|
66
|
+
fields: [
|
|
67
|
+
{
|
|
68
|
+
key: 'projectRequirePlan',
|
|
69
|
+
help: 'Projects inside a programme and projects made by sales orders need none of their own.',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
42
73
|
],
|
|
43
74
|
},
|
|
44
75
|
// support@<inbound domain>: a task in the support project (RFC 0006 §7.1), or the first project there is.
|
|
@@ -59,7 +90,60 @@ export const project = defineModule({
|
|
|
59
90
|
},
|
|
60
91
|
},
|
|
61
92
|
],
|
|
62
|
-
depends: [contacts, messaging, reporting],
|
|
93
|
+
depends: [contacts, messaging, permissions, reporting],
|
|
94
|
+
routes: (context) => registerProjectRoutes(context),
|
|
95
|
+
// A plan is decided by its sponsor (a Projects manager when there is none), and a large one by a manager too.
|
|
96
|
+
approvals: [
|
|
97
|
+
{
|
|
98
|
+
name: 'Project plans',
|
|
99
|
+
model: 'project.plan',
|
|
100
|
+
onApproved: 'approve',
|
|
101
|
+
onRejected: 'reject',
|
|
102
|
+
onSentBack: 'redraft',
|
|
103
|
+
onWithdrawn: 'redraft',
|
|
104
|
+
levels: [
|
|
105
|
+
{
|
|
106
|
+
name: 'Sponsor',
|
|
107
|
+
condition: {},
|
|
108
|
+
approver: { field: 'sponsor' },
|
|
109
|
+
approverRole: 'project.manager',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Large budget',
|
|
113
|
+
condition: { estimatedBudget: { gt: '1000000' } },
|
|
114
|
+
approverRole: 'project.manager',
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
// A change to a project's deadline or budget: its sponsor, then a Projects manager.
|
|
119
|
+
{
|
|
120
|
+
name: 'Project change requests',
|
|
121
|
+
model: 'project.change',
|
|
122
|
+
onApproved: 'approve',
|
|
123
|
+
onRejected: 'reject',
|
|
124
|
+
onSentBack: 'redraft',
|
|
125
|
+
onWithdrawn: 'redraft',
|
|
126
|
+
levels: [
|
|
127
|
+
{
|
|
128
|
+
name: 'Sponsor',
|
|
129
|
+
condition: {},
|
|
130
|
+
approver: { field: 'sponsor' },
|
|
131
|
+
approverRole: 'project.manager',
|
|
132
|
+
},
|
|
133
|
+
{ name: 'Projects manager', condition: {}, approverRole: 'project.manager' },
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
events: [
|
|
138
|
+
{ topic: 'project.change.applied', model: 'project.change', label: 'Change request applied' },
|
|
139
|
+
{
|
|
140
|
+
topic: 'project.status.report.sent',
|
|
141
|
+
model: 'project.status.report',
|
|
142
|
+
label: 'Status report sent',
|
|
143
|
+
},
|
|
144
|
+
{ topic: 'project.plan.submitted', model: 'project.plan', label: 'Project plan submitted' },
|
|
145
|
+
{ topic: 'project.plan.approved', model: 'project.plan', label: 'Project plan approved' },
|
|
146
|
+
],
|
|
63
147
|
app: {
|
|
64
148
|
code: 'projects',
|
|
65
149
|
label: 'Projects',
|
|
@@ -68,6 +152,129 @@ export const project = defineModule({
|
|
|
68
152
|
category: 'Operations',
|
|
69
153
|
summary: 'Projects, tasks on a kanban, timesheets',
|
|
70
154
|
},
|
|
155
|
+
documents: [
|
|
156
|
+
{
|
|
157
|
+
key: 'project_plan',
|
|
158
|
+
name: 'Project plan',
|
|
159
|
+
model: 'project.plan',
|
|
160
|
+
layout: {
|
|
161
|
+
paper: 'A4',
|
|
162
|
+
header: '{{company.name}}',
|
|
163
|
+
footer: 'Page {{page}} of {{pages}}',
|
|
164
|
+
blocks: [
|
|
165
|
+
{ kind: 'heading', id: 'title', text: 'Project plan {{name}}: {{title}}', level: 1 },
|
|
166
|
+
{
|
|
167
|
+
kind: 'fields',
|
|
168
|
+
id: 'plan',
|
|
169
|
+
items: [
|
|
170
|
+
{ label: 'Type', bind: 'type.name' },
|
|
171
|
+
{ label: 'Written by', bind: 'requester.name' },
|
|
172
|
+
{ label: 'Project manager', bind: 'manager.name' },
|
|
173
|
+
{ label: 'Sponsor', bind: 'sponsor.name' },
|
|
174
|
+
{ label: 'Priority', bind: 'priority' },
|
|
175
|
+
{ label: 'Planned start', bind: 'dateStart' },
|
|
176
|
+
{ label: 'Planned end', bind: 'dateEnd' },
|
|
177
|
+
{ label: 'Estimated budget', bind: 'estimatedBudget' },
|
|
178
|
+
{ label: 'Approved budget', bind: 'approvedBudget' },
|
|
179
|
+
{ label: 'Approved on', bind: 'approvedAt' },
|
|
180
|
+
{ label: 'Status', bind: 'state' },
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{ kind: 'text', id: 'objectives', text: 'Objectives: {{objectives}}' },
|
|
184
|
+
{ kind: 'text', id: 'outcome', text: 'Expected outcome: {{expectedOutcome}}' },
|
|
185
|
+
{ kind: 'text', id: 'goal', text: 'Strategic goal: {{strategicGoal}}' },
|
|
186
|
+
{ kind: 'text', id: 'about', text: '{{description}}' },
|
|
187
|
+
{ kind: 'signature', id: 'sign', labels: ['Project manager', 'Sponsor'] },
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
importTemplates: [
|
|
193
|
+
{
|
|
194
|
+
key: 'project_plan',
|
|
195
|
+
model: 'project.plan',
|
|
196
|
+
label: 'Project plan',
|
|
197
|
+
columns: [
|
|
198
|
+
{ header: 'Title', field: 'title' },
|
|
199
|
+
{ header: 'Project type', field: 'type' },
|
|
200
|
+
{ header: 'Written by', field: 'requester' },
|
|
201
|
+
{ header: 'Project manager', field: 'manager' },
|
|
202
|
+
{ header: 'Sponsor', field: 'sponsor' },
|
|
203
|
+
{ header: 'Priority', field: 'priority' },
|
|
204
|
+
{ header: 'Planned start', field: 'dateStart' },
|
|
205
|
+
{ header: 'Planned end', field: 'dateEnd' },
|
|
206
|
+
{ header: 'Description', field: 'description' },
|
|
207
|
+
{ header: 'Objectives', field: 'objectives' },
|
|
208
|
+
{ header: 'Expected outcome', field: 'expectedOutcome' },
|
|
209
|
+
{ header: 'Strategic goal', field: 'strategicGoal' },
|
|
210
|
+
{ header: 'Estimated budget', field: 'estimatedBudget' },
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
key: 'project_role',
|
|
215
|
+
model: 'project.role',
|
|
216
|
+
label: 'Project role',
|
|
217
|
+
columns: [
|
|
218
|
+
{ header: 'Name', field: 'name' },
|
|
219
|
+
{ header: 'Code', field: 'code' },
|
|
220
|
+
{ header: 'Default hourly cost', field: 'defaultHourlyCost' },
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
key: 'project_type',
|
|
225
|
+
model: 'project.type',
|
|
226
|
+
label: 'Project type',
|
|
227
|
+
columns: [
|
|
228
|
+
{ header: 'Name', field: 'name' },
|
|
229
|
+
{ header: 'Code', field: 'code' },
|
|
230
|
+
{ header: 'Description', field: 'description' },
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
key: 'project_task_category',
|
|
235
|
+
model: 'project.task.category',
|
|
236
|
+
label: 'Task category',
|
|
237
|
+
columns: [
|
|
238
|
+
{ header: 'Name', field: 'name' },
|
|
239
|
+
{ header: 'Code', field: 'code' },
|
|
240
|
+
{ header: 'Project type', field: 'type' },
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
key: 'project_task_stage',
|
|
245
|
+
model: 'project.task.stage',
|
|
246
|
+
label: 'Task stage',
|
|
247
|
+
columns: [
|
|
248
|
+
{ header: 'Name', field: 'name' },
|
|
249
|
+
{ header: 'Fold', field: 'fold' },
|
|
250
|
+
{ header: 'Closes the task', field: 'done' },
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
key: 'project_project',
|
|
255
|
+
model: 'project.project',
|
|
256
|
+
label: 'Project',
|
|
257
|
+
columns: [
|
|
258
|
+
{ header: 'Name', field: 'name' },
|
|
259
|
+
{ header: 'Project type', field: 'type' },
|
|
260
|
+
{ header: 'Programme', field: 'parentProject' },
|
|
261
|
+
{ header: 'Customer', field: 'partner' },
|
|
262
|
+
{ header: 'Project manager', field: 'manager' },
|
|
263
|
+
{ header: 'Sponsor', field: 'sponsor' },
|
|
264
|
+
{ header: 'Owner', field: 'owner' },
|
|
265
|
+
{ header: 'Priority', field: 'priority' },
|
|
266
|
+
{ header: 'Risk', field: 'riskLevel' },
|
|
267
|
+
{ header: 'Location', field: 'location' },
|
|
268
|
+
{ header: 'Phases › Name', field: 'phases.name' },
|
|
269
|
+
{ header: 'Phases › Code', field: 'phases.code' },
|
|
270
|
+
{ header: 'Phases › Manager', field: 'phases.manager' },
|
|
271
|
+
{ header: 'Phases › Start', field: 'phases.dateStart' },
|
|
272
|
+
{ header: 'Phases › End', field: 'phases.dateEnd' },
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
// Bangla for the labels it serves (RFC 0023 §3.1; `pnpm i18n:extract`).
|
|
277
|
+
i18n: { bn: () => import('./i18n/bn.js') },
|
|
71
278
|
accessLevels: {
|
|
72
279
|
user: { label: 'User (projects and tasks, own timesheets)', groups: ['project.user'] },
|
|
73
280
|
manager: {
|
|
@@ -114,6 +321,34 @@ export const project = defineModule({
|
|
|
114
321
|
filter: { 'stage.done': false },
|
|
115
322
|
w: 3,
|
|
116
323
|
},
|
|
324
|
+
{
|
|
325
|
+
id: 'projects_by_health',
|
|
326
|
+
title: 'Projects by health',
|
|
327
|
+
kind: 'chart',
|
|
328
|
+
model: 'project.project',
|
|
329
|
+
measure: 'count',
|
|
330
|
+
groupBy: 'health',
|
|
331
|
+
chart: 'pie',
|
|
332
|
+
w: 6,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
id: 'plans_waiting',
|
|
336
|
+
title: 'Plans waiting for a decision',
|
|
337
|
+
kind: 'kpi',
|
|
338
|
+
model: 'project.plan',
|
|
339
|
+
measure: 'count',
|
|
340
|
+
filter: { state: 'submitted' },
|
|
341
|
+
w: 3,
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: 'phases_overdue',
|
|
345
|
+
title: 'Phases overdue',
|
|
346
|
+
kind: 'kpi',
|
|
347
|
+
model: 'project.phase',
|
|
348
|
+
measure: 'count',
|
|
349
|
+
filter: { late: true },
|
|
350
|
+
w: 3,
|
|
351
|
+
},
|
|
117
352
|
{
|
|
118
353
|
id: 'tasks_by_stage',
|
|
119
354
|
title: 'Tasks by stage',
|
|
@@ -156,13 +391,56 @@ export const project = defineModule({
|
|
|
156
391
|
],
|
|
157
392
|
},
|
|
158
393
|
actions: {
|
|
394
|
+
'projects.action_plans': action(ProjectPlan, {
|
|
395
|
+
label: 'Plans',
|
|
396
|
+
views: ['list', 'kanban', 'form'],
|
|
397
|
+
}),
|
|
159
398
|
'projects.action_projects': action(ProjectProject, {
|
|
160
399
|
label: 'Projects',
|
|
400
|
+
views: ['list', 'gantt', 'hierarchy', 'form'],
|
|
401
|
+
}),
|
|
402
|
+
'projects.action_phases': action(ProjectPhase, {
|
|
403
|
+
label: 'Phases',
|
|
161
404
|
views: ['list', 'gantt', 'form'],
|
|
162
405
|
}),
|
|
406
|
+
'projects.action_work_packages': action(ProjectWorkPackage, {
|
|
407
|
+
label: 'Work packages',
|
|
408
|
+
views: ['list', 'kanban', 'form'],
|
|
409
|
+
}),
|
|
410
|
+
'projects.action_types': action(ProjectType, {
|
|
411
|
+
label: 'Project types',
|
|
412
|
+
views: ['list', 'form'],
|
|
413
|
+
}),
|
|
414
|
+
'projects.action_roles': action(ProjectRole, { label: 'Roles', views: ['list', 'form'] }),
|
|
415
|
+
'projects.action_members': action(ProjectMember, {
|
|
416
|
+
label: 'Team members',
|
|
417
|
+
views: ['list', 'form'],
|
|
418
|
+
}),
|
|
419
|
+
'projects.action_workload': { type: 'client', page: 'projects.Workload', label: 'Workload' },
|
|
420
|
+
'projects.action_risks': action(ProjectRisk, {
|
|
421
|
+
label: 'Risks',
|
|
422
|
+
views: ['list', 'kanban', 'form'],
|
|
423
|
+
}),
|
|
424
|
+
'projects.action_issues': action(ProjectIssue, {
|
|
425
|
+
label: 'Issues',
|
|
426
|
+
views: ['list', 'kanban', 'form'],
|
|
427
|
+
}),
|
|
428
|
+
'projects.action_changes': action(ProjectChange, {
|
|
429
|
+
label: 'Change requests',
|
|
430
|
+
views: ['list', 'form'],
|
|
431
|
+
}),
|
|
432
|
+
'projects.action_reports': action(ProjectStatusReport, {
|
|
433
|
+
label: 'Status reports',
|
|
434
|
+
views: ['list', 'form'],
|
|
435
|
+
}),
|
|
436
|
+
'projects.action_categories': action(ProjectTaskCategory, {
|
|
437
|
+
label: 'Task categories',
|
|
438
|
+
views: ['list', 'form'],
|
|
439
|
+
}),
|
|
440
|
+
'projects.action_tags': action(ProjectTag, { label: 'Tags', views: ['list', 'form'] }),
|
|
163
441
|
'projects.action_tasks': action(ProjectTask, {
|
|
164
442
|
label: 'Tasks',
|
|
165
|
-
views: ['kanban', 'list', 'form', 'calendar'],
|
|
443
|
+
views: ['kanban', 'list', 'form', 'calendar', 'gantt'],
|
|
166
444
|
}),
|
|
167
445
|
'projects.action_timesheets': action(ProjectTimesheet, {
|
|
168
446
|
label: 'Timesheets',
|
|
@@ -175,6 +453,13 @@ export const project = defineModule({
|
|
|
175
453
|
},
|
|
176
454
|
menus: [
|
|
177
455
|
{ id: 'projects.root', label: 'Projects', app: 'projects' },
|
|
456
|
+
{
|
|
457
|
+
id: 'projects.plans',
|
|
458
|
+
parent: 'projects.root',
|
|
459
|
+
label: 'Plans',
|
|
460
|
+
action: 'projects.action_plans',
|
|
461
|
+
sequence: 0.5,
|
|
462
|
+
},
|
|
178
463
|
{
|
|
179
464
|
id: 'projects.projects',
|
|
180
465
|
parent: 'projects.root',
|
|
@@ -182,6 +467,20 @@ export const project = defineModule({
|
|
|
182
467
|
action: 'projects.action_projects',
|
|
183
468
|
sequence: 1,
|
|
184
469
|
},
|
|
470
|
+
{
|
|
471
|
+
id: 'projects.phases',
|
|
472
|
+
parent: 'projects.root',
|
|
473
|
+
label: 'Phases',
|
|
474
|
+
action: 'projects.action_phases',
|
|
475
|
+
sequence: 1.3,
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
id: 'projects.work_packages',
|
|
479
|
+
parent: 'projects.root',
|
|
480
|
+
label: 'Work packages',
|
|
481
|
+
action: 'projects.action_work_packages',
|
|
482
|
+
sequence: 1.6,
|
|
483
|
+
},
|
|
185
484
|
{
|
|
186
485
|
id: 'projects.tasks',
|
|
187
486
|
parent: 'projects.root',
|
|
@@ -196,6 +495,35 @@ export const project = defineModule({
|
|
|
196
495
|
action: 'projects.action_timesheets',
|
|
197
496
|
sequence: 3,
|
|
198
497
|
},
|
|
498
|
+
{ id: 'projects.control', parent: 'projects.root', label: 'Control', sequence: 5 },
|
|
499
|
+
{
|
|
500
|
+
id: 'projects.risks',
|
|
501
|
+
parent: 'projects.control',
|
|
502
|
+
label: 'Risks',
|
|
503
|
+
action: 'projects.action_risks',
|
|
504
|
+
sequence: 1,
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: 'projects.issues',
|
|
508
|
+
parent: 'projects.control',
|
|
509
|
+
label: 'Issues',
|
|
510
|
+
action: 'projects.action_issues',
|
|
511
|
+
sequence: 2,
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
id: 'projects.changes',
|
|
515
|
+
parent: 'projects.control',
|
|
516
|
+
label: 'Change requests',
|
|
517
|
+
action: 'projects.action_changes',
|
|
518
|
+
sequence: 3,
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
id: 'projects.reports',
|
|
522
|
+
parent: 'projects.control',
|
|
523
|
+
label: 'Status reports',
|
|
524
|
+
action: 'projects.action_reports',
|
|
525
|
+
sequence: 4,
|
|
526
|
+
},
|
|
199
527
|
{ id: 'projects.configuration', parent: 'projects.root', label: 'Configuration', sequence: 9 },
|
|
200
528
|
{
|
|
201
529
|
id: 'projects.stages',
|
|
@@ -204,18 +532,63 @@ export const project = defineModule({
|
|
|
204
532
|
action: 'projects.action_stages',
|
|
205
533
|
sequence: 1,
|
|
206
534
|
},
|
|
535
|
+
{
|
|
536
|
+
id: 'projects.workload',
|
|
537
|
+
parent: 'projects.root',
|
|
538
|
+
label: 'Workload',
|
|
539
|
+
action: 'projects.action_workload',
|
|
540
|
+
sequence: 2.5,
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
id: 'projects.roles',
|
|
544
|
+
parent: 'projects.configuration',
|
|
545
|
+
label: 'Roles',
|
|
546
|
+
action: 'projects.action_roles',
|
|
547
|
+
sequence: 1.5,
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
id: 'projects.types',
|
|
551
|
+
parent: 'projects.configuration',
|
|
552
|
+
label: 'Project types',
|
|
553
|
+
action: 'projects.action_types',
|
|
554
|
+
sequence: 2,
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
id: 'projects.categories',
|
|
558
|
+
parent: 'projects.configuration',
|
|
559
|
+
label: 'Task categories',
|
|
560
|
+
action: 'projects.action_categories',
|
|
561
|
+
sequence: 3,
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
id: 'projects.tags',
|
|
565
|
+
parent: 'projects.configuration',
|
|
566
|
+
label: 'Tags',
|
|
567
|
+
action: 'projects.action_tags',
|
|
568
|
+
sequence: 4,
|
|
569
|
+
},
|
|
207
570
|
],
|
|
208
571
|
views: {
|
|
209
572
|
'project.project.list': list(ProjectProject, {
|
|
210
573
|
columns: [
|
|
574
|
+
'code',
|
|
211
575
|
'name',
|
|
576
|
+
'type',
|
|
212
577
|
'partner',
|
|
213
578
|
'manager',
|
|
214
|
-
'
|
|
579
|
+
{ field: 'priority', widget: 'badge' },
|
|
580
|
+
{ field: 'riskLevel', widget: 'badge' },
|
|
581
|
+
{ field: 'health', widget: 'badge' },
|
|
582
|
+
{ field: 'progress', widget: 'progress' },
|
|
583
|
+
{ field: 'dateEnd', widget: 'daysLeft' },
|
|
215
584
|
{ field: 'taskCount', sum: true },
|
|
216
585
|
{ field: 'hours', sum: true },
|
|
217
586
|
],
|
|
218
587
|
defaultOrder: ['sequence asc', 'name asc'],
|
|
588
|
+
decorations: {
|
|
589
|
+
danger: { health: 'off_track' },
|
|
590
|
+
warning: { health: 'at_risk' },
|
|
591
|
+
},
|
|
219
592
|
}),
|
|
220
593
|
'project.project.form': form(ProjectProject, (k) => ({
|
|
221
594
|
header: { buttons: [] },
|
|
@@ -244,17 +617,126 @@ export const project = defineModule({
|
|
|
244
617
|
measure: { sum: 'hours' },
|
|
245
618
|
action: 'projects.action_timesheets',
|
|
246
619
|
},
|
|
620
|
+
{
|
|
621
|
+
id: 'project_phases',
|
|
622
|
+
label: 'Phases',
|
|
623
|
+
model: ProjectPhase,
|
|
624
|
+
where: { project: { $record: 'id' } },
|
|
625
|
+
action: 'projects.action_phases',
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
id: 'project_work_packages',
|
|
629
|
+
label: 'Work packages',
|
|
630
|
+
model: ProjectWorkPackage,
|
|
631
|
+
where: { project: { $record: 'id' } },
|
|
632
|
+
action: 'projects.action_work_packages',
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
id: 'project_risks',
|
|
636
|
+
label: 'Open risks',
|
|
637
|
+
model: ProjectRisk,
|
|
638
|
+
where: { project: { $record: 'id' }, status: { in: ['open', 'mitigating'] } },
|
|
639
|
+
action: 'projects.action_risks',
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
id: 'project_issues',
|
|
643
|
+
label: 'Open issues',
|
|
644
|
+
model: ProjectIssue,
|
|
645
|
+
where: { project: { $record: 'id' }, status: { in: ['open', 'in_progress'] } },
|
|
646
|
+
action: 'projects.action_issues',
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
id: 'project_changes',
|
|
650
|
+
label: 'Change requests',
|
|
651
|
+
model: ProjectChange,
|
|
652
|
+
where: { project: { $record: 'id' } },
|
|
653
|
+
action: 'projects.action_changes',
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
id: 'project_reports',
|
|
657
|
+
label: 'Status reports',
|
|
658
|
+
model: ProjectStatusReport,
|
|
659
|
+
where: { project: { $record: 'id' } },
|
|
660
|
+
action: 'projects.action_reports',
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
id: 'project_children',
|
|
664
|
+
label: 'Projects in it',
|
|
665
|
+
model: ProjectProject,
|
|
666
|
+
where: { parentProject: { $record: 'id' } },
|
|
667
|
+
action: 'projects.action_projects',
|
|
668
|
+
},
|
|
669
|
+
]),
|
|
670
|
+
k.group('main', ['name', 'code', 'type', 'parentProject', 'plan', 'partner', 'location']),
|
|
671
|
+
k.group('people', ['manager', 'sponsor', 'owner', 'priority', 'riskLevel'], {
|
|
672
|
+
label: 'People and risk',
|
|
673
|
+
}),
|
|
674
|
+
k.group('dates', ['dateStart', 'dateEnd', 'progress', 'taskCount', 'hours']),
|
|
675
|
+
k.group('health_group', ['health', 'healthNotes', 'healthCheckedAt'], {
|
|
676
|
+
label: 'Health',
|
|
677
|
+
description: 'From the figures — schedule against time elapsed, late milestones, the budget used —, refreshed hourly.',
|
|
678
|
+
}),
|
|
679
|
+
k.group('health_override', ['healthComputed', 'healthOverride', 'healthReason'], {
|
|
680
|
+
label: 'Health set by hand',
|
|
681
|
+
description: 'The manager may override what the figures say, with the reason; it stays in the history.',
|
|
682
|
+
}),
|
|
683
|
+
k.group('money', ['budget', 'labourCost', 'bookedCost', 'committedCost', 'actualCost', 'variance'], {
|
|
684
|
+
label: 'Money',
|
|
685
|
+
description: 'Labour from timesheets at each member’s cost; booked and committed costs from Accounting and Purchase on the project’s cost centre.',
|
|
686
|
+
}),
|
|
687
|
+
k.component('refresh', 'projects.Refresh'),
|
|
688
|
+
k.lines('budgetLines', [
|
|
689
|
+
{ field: 'name', id: 'budget_name' },
|
|
690
|
+
{ field: 'category', id: 'budget_category' },
|
|
691
|
+
{ field: 'phase', id: 'budget_phase' },
|
|
692
|
+
{ field: 'workPackage', id: 'budget_wp' },
|
|
693
|
+
{ field: 'planned', id: 'budget_planned', sum: true },
|
|
694
|
+
]),
|
|
695
|
+
k.group('baseline', ['baselineStart', 'baselineEnd', 'baselineBudget', 'slipDays'], {
|
|
696
|
+
label: 'Baseline',
|
|
697
|
+
description: 'The dates and budget approved with the plan; the deadline is compared with them.',
|
|
698
|
+
}),
|
|
699
|
+
k.group('about', ['description', 'scope', 'assumptions', 'constraints'], {
|
|
700
|
+
columns: 1,
|
|
701
|
+
label: 'Scope',
|
|
702
|
+
}),
|
|
703
|
+
k.component('structure', 'projects.Structure'),
|
|
704
|
+
k.component('schedule', 'projects.Schedule'),
|
|
705
|
+
k.lines('members', [
|
|
706
|
+
{ field: 'user', id: 'member_user' },
|
|
707
|
+
{ field: 'role', id: 'member_role' },
|
|
708
|
+
{ field: 'allocation', id: 'member_allocation' },
|
|
709
|
+
{ field: 'hourlyCost', id: 'member_cost' },
|
|
710
|
+
{ field: 'dateFrom', id: 'member_from' },
|
|
711
|
+
{ field: 'dateTo', id: 'member_to' },
|
|
712
|
+
{ field: 'overallocated', id: 'member_over' },
|
|
713
|
+
]),
|
|
714
|
+
k.lines('phases', [
|
|
715
|
+
{ field: 'sequence', id: 'phase_sequence' },
|
|
716
|
+
{ field: 'name', id: 'phase_name' },
|
|
717
|
+
{ field: 'manager', id: 'phase_manager' },
|
|
718
|
+
{ field: 'dateStart', id: 'phase_start' },
|
|
719
|
+
{ field: 'dateEnd', id: 'phase_end' },
|
|
720
|
+
{ field: 'status', id: 'phase_status' },
|
|
721
|
+
{ field: 'progress', id: 'phase_progress', widget: 'progress' },
|
|
722
|
+
]),
|
|
723
|
+
k.lines('workPackages', [
|
|
724
|
+
{ field: 'name', id: 'wp_name' },
|
|
725
|
+
{ field: 'phase', id: 'wp_phase' },
|
|
726
|
+
{ field: 'manager', id: 'wp_manager' },
|
|
727
|
+
{ field: 'dateEnd', id: 'wp_end' },
|
|
728
|
+
{ field: 'status', id: 'wp_status' },
|
|
729
|
+
{ field: 'progress', id: 'wp_progress', widget: 'progress' },
|
|
247
730
|
]),
|
|
248
|
-
k.group('main', ['name', 'partner', 'manager', 'sequence']),
|
|
249
|
-
k.group('dates', ['dateStart', 'dateEnd', 'taskCount', 'hours']),
|
|
250
|
-
k.group('about', ['description'], { columns: 1 }),
|
|
251
731
|
k.lines('tasks', [
|
|
252
732
|
{ field: 'name', id: 'task_name' },
|
|
733
|
+
{ field: 'phase', id: 'task_phase' },
|
|
253
734
|
'stage',
|
|
254
735
|
'assignee',
|
|
255
736
|
'deadline',
|
|
256
737
|
'plannedHours',
|
|
257
738
|
'effectiveHours',
|
|
739
|
+
{ field: 'progress', id: 'task_progress', widget: 'progress' },
|
|
258
740
|
]),
|
|
259
741
|
],
|
|
260
742
|
chatter: true,
|
|
@@ -269,7 +751,9 @@ export const project = defineModule({
|
|
|
269
751
|
footer: [
|
|
270
752
|
{ field: 'deadline', widget: 'daysLeft' },
|
|
271
753
|
{ field: 'priority', widget: 'priority' },
|
|
754
|
+
{ field: 'tags', widget: 'tags' },
|
|
272
755
|
],
|
|
756
|
+
progress: 'progress',
|
|
273
757
|
},
|
|
274
758
|
}),
|
|
275
759
|
// Projects on a timeline, from their start to their deadline.
|
|
@@ -283,8 +767,11 @@ export const project = defineModule({
|
|
|
283
767
|
columns: [
|
|
284
768
|
'name',
|
|
285
769
|
'project',
|
|
770
|
+
'phase',
|
|
771
|
+
'workPackage',
|
|
286
772
|
'stage',
|
|
287
773
|
'assignee',
|
|
774
|
+
{ field: 'progress', widget: 'progress' },
|
|
288
775
|
{ field: 'deadline', widget: 'daysLeft' },
|
|
289
776
|
{ field: 'priority', widget: 'priority' },
|
|
290
777
|
{ field: 'plannedHours', sum: true },
|
|
@@ -295,9 +782,34 @@ export const project = defineModule({
|
|
|
295
782
|
'project.task.form': form(ProjectTask, (k) => ({
|
|
296
783
|
header: { buttons: [] },
|
|
297
784
|
sheet: [
|
|
298
|
-
k.group('main', ['name', 'project', '
|
|
299
|
-
k.group('
|
|
785
|
+
k.group('main', ['name', 'project', 'phase', 'workPackage', 'parentTask', 'stage']),
|
|
786
|
+
k.group('people', ['assignee', 'assignees', 'category', 'tags', 'milestone', 'blocked']),
|
|
787
|
+
k.group('when', [
|
|
788
|
+
'partner',
|
|
789
|
+
'priority',
|
|
790
|
+
'dateStart',
|
|
791
|
+
'deadline',
|
|
792
|
+
'plannedHours',
|
|
793
|
+
'effectiveHours',
|
|
794
|
+
'progress',
|
|
795
|
+
]),
|
|
796
|
+
k.group('repeat', ['repeatEvery', 'repeatUnit', 'repeatUntil', 'nextTask'], {
|
|
797
|
+
label: 'Repeats',
|
|
798
|
+
description: 'Once done, the next one is made with its dates moved, until the date given.',
|
|
799
|
+
}),
|
|
800
|
+
k.group('task_baseline', ['baselineStart', 'baselineEnd'], { label: 'Baseline' }),
|
|
300
801
|
k.group('about', ['description'], { columns: 1 }),
|
|
802
|
+
k.lines('subtasks', [
|
|
803
|
+
{ field: 'name', id: 'sub_name' },
|
|
804
|
+
{ field: 'assignee', id: 'sub_assignee' },
|
|
805
|
+
{ field: 'deadline', id: 'sub_deadline' },
|
|
806
|
+
{ field: 'plannedHours', id: 'sub_planned' },
|
|
807
|
+
{ field: 'stage', id: 'sub_stage' },
|
|
808
|
+
]),
|
|
809
|
+
k.lines('predecessors', [
|
|
810
|
+
{ field: 'predecessor', id: 'dep_predecessor' },
|
|
811
|
+
{ field: 'lag', id: 'dep_lag' },
|
|
812
|
+
]),
|
|
301
813
|
k.lines('timesheets', [
|
|
302
814
|
'date',
|
|
303
815
|
'user',
|
|
@@ -307,6 +819,14 @@ export const project = defineModule({
|
|
|
307
819
|
],
|
|
308
820
|
chatter: true,
|
|
309
821
|
})),
|
|
822
|
+
'project.task.gantt': gantt(ProjectTask, {
|
|
823
|
+
dateStart: 'dateStart',
|
|
824
|
+
dateStop: 'deadline',
|
|
825
|
+
title: 'name',
|
|
826
|
+
groupBy: 'project',
|
|
827
|
+
progress: 'progress',
|
|
828
|
+
scale: 'week',
|
|
829
|
+
}),
|
|
310
830
|
'project.task.calendar': calendar(ProjectTask, {
|
|
311
831
|
dateStart: 'deadline',
|
|
312
832
|
title: 'name',
|
|
@@ -331,6 +851,381 @@ export const project = defineModule({
|
|
|
331
851
|
measures: [{ sum: 'hours' }],
|
|
332
852
|
comparison: { field: 'date', mode: 'previous' },
|
|
333
853
|
}),
|
|
854
|
+
'project.risk.list': list(ProjectRisk, {
|
|
855
|
+
columns: [
|
|
856
|
+
'project',
|
|
857
|
+
'name',
|
|
858
|
+
'category',
|
|
859
|
+
'probability',
|
|
860
|
+
'impact',
|
|
861
|
+
'score',
|
|
862
|
+
{ field: 'level', widget: 'badge' },
|
|
863
|
+
'owner',
|
|
864
|
+
{ field: 'dueDate', widget: 'daysLeft' },
|
|
865
|
+
{ field: 'status', widget: 'badge' },
|
|
866
|
+
],
|
|
867
|
+
decorations: {
|
|
868
|
+
danger: { level: 'critical' },
|
|
869
|
+
warning: { level: 'high' },
|
|
870
|
+
neutral: { status: 'closed' },
|
|
871
|
+
},
|
|
872
|
+
}),
|
|
873
|
+
'project.risk.kanban': kanban(ProjectRisk, {
|
|
874
|
+
groupBy: 'level',
|
|
875
|
+
card: {
|
|
876
|
+
title: 'name',
|
|
877
|
+
subtitle: 'project',
|
|
878
|
+
avatar: 'owner',
|
|
879
|
+
footer: ['score', { field: 'status', widget: 'badge' }],
|
|
880
|
+
},
|
|
881
|
+
}),
|
|
882
|
+
'project.risk.form': form(ProjectRisk, (k) => ({
|
|
883
|
+
sheet: [
|
|
884
|
+
k.group('main', ['name', 'project', 'category', 'owner', 'status', 'dueDate']),
|
|
885
|
+
k.group('assessment', ['probability', 'impact', 'score', 'level'], {
|
|
886
|
+
label: 'Assessment',
|
|
887
|
+
description: 'Probability and impact from 1 to 5; their product is the score.',
|
|
888
|
+
}),
|
|
889
|
+
k.group('response', ['description', 'mitigation', 'contingency'], {
|
|
890
|
+
columns: 1,
|
|
891
|
+
label: 'Response',
|
|
892
|
+
}),
|
|
893
|
+
],
|
|
894
|
+
chatter: true,
|
|
895
|
+
})),
|
|
896
|
+
'project.issue.list': list(ProjectIssue, {
|
|
897
|
+
columns: [
|
|
898
|
+
'project',
|
|
899
|
+
'name',
|
|
900
|
+
{ field: 'severity', widget: 'badge' },
|
|
901
|
+
'owner',
|
|
902
|
+
{ field: 'dueDate', widget: 'daysLeft' },
|
|
903
|
+
{ field: 'status', widget: 'badge' },
|
|
904
|
+
],
|
|
905
|
+
decorations: { danger: { severity: 'critical' }, neutral: { status: 'closed' } },
|
|
906
|
+
}),
|
|
907
|
+
'project.issue.kanban': kanban(ProjectIssue, {
|
|
908
|
+
groupBy: 'status',
|
|
909
|
+
card: {
|
|
910
|
+
title: 'name',
|
|
911
|
+
subtitle: 'project',
|
|
912
|
+
avatar: 'owner',
|
|
913
|
+
footer: [
|
|
914
|
+
{ field: 'severity', widget: 'badge' },
|
|
915
|
+
{ field: 'dueDate', widget: 'daysLeft' },
|
|
916
|
+
],
|
|
917
|
+
},
|
|
918
|
+
}),
|
|
919
|
+
'project.issue.form': form(ProjectIssue, (k) => ({
|
|
920
|
+
sheet: [
|
|
921
|
+
k.group('main', ['name', 'project', 'severity', 'status', 'risk']),
|
|
922
|
+
k.group('people', ['raisedBy', 'owner', 'dueDate']),
|
|
923
|
+
k.group('about', ['description', 'resolution'], { columns: 1 }),
|
|
924
|
+
],
|
|
925
|
+
chatter: true,
|
|
926
|
+
})),
|
|
927
|
+
'project.change.list': list(ProjectChange, {
|
|
928
|
+
columns: [
|
|
929
|
+
'name',
|
|
930
|
+
'project',
|
|
931
|
+
'title',
|
|
932
|
+
'requester',
|
|
933
|
+
'newDateEnd',
|
|
934
|
+
'newBudget',
|
|
935
|
+
{ field: 'state', widget: 'badge' },
|
|
936
|
+
],
|
|
937
|
+
decorations: { warning: { state: 'submitted' }, danger: { state: 'rejected' } },
|
|
938
|
+
}),
|
|
939
|
+
'project.change.form': form(ProjectChange, (k) => ({
|
|
940
|
+
header: {
|
|
941
|
+
statusbar: 'state',
|
|
942
|
+
buttons: [
|
|
943
|
+
k.button('submit', { primary: true, label: 'Submit for approval' }),
|
|
944
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
945
|
+
k.button('cancel', { label: 'Cancel' }),
|
|
946
|
+
],
|
|
947
|
+
},
|
|
948
|
+
sheet: [
|
|
949
|
+
k.group('main', ['title', 'name', 'project', 'requester', 'sponsor']),
|
|
950
|
+
k.component('approvals', 'approvals.Panel'),
|
|
951
|
+
k.group('asked', ['newDateEnd', 'newBudget'], {
|
|
952
|
+
label: 'What it asks for',
|
|
953
|
+
description: 'Once approved, the project’s deadline and baseline end move to the new deadline, and its baseline budget to the new budget.',
|
|
954
|
+
}),
|
|
955
|
+
k.group('why', ['reason', 'impact'], { columns: 1, label: 'Why' }),
|
|
956
|
+
k.group('before', ['previousDateEnd', 'previousBaselineEnd', 'previousBudget', 'appliedAt'], {
|
|
957
|
+
label: 'What it changed',
|
|
958
|
+
}),
|
|
959
|
+
],
|
|
960
|
+
chatter: true,
|
|
961
|
+
})),
|
|
962
|
+
'project.status.report.list': list(ProjectStatusReport, {
|
|
963
|
+
columns: [
|
|
964
|
+
'project',
|
|
965
|
+
'date',
|
|
966
|
+
'author',
|
|
967
|
+
{ field: 'health', widget: 'badge' },
|
|
968
|
+
{ field: 'progress', widget: 'progress' },
|
|
969
|
+
{ field: 'state', widget: 'badge' },
|
|
970
|
+
],
|
|
971
|
+
decorations: { danger: { health: 'off_track' }, warning: { health: 'at_risk' } },
|
|
972
|
+
}),
|
|
973
|
+
'project.status.report.form': form(ProjectStatusReport, (k) => ({
|
|
974
|
+
header: {
|
|
975
|
+
statusbar: 'state',
|
|
976
|
+
buttons: [
|
|
977
|
+
k.button('send', {
|
|
978
|
+
primary: true,
|
|
979
|
+
label: 'Send',
|
|
980
|
+
confirm: 'Send the report? It is posted on the project for its followers and its sponsor.',
|
|
981
|
+
}),
|
|
982
|
+
],
|
|
983
|
+
},
|
|
984
|
+
sheet: [
|
|
985
|
+
k.group('main', ['project', 'date', 'author', 'sentAt']),
|
|
986
|
+
k.group('figures', ['health', 'progress'], {
|
|
987
|
+
label: 'Figures',
|
|
988
|
+
description: 'Filled in from the project when it is chosen.',
|
|
989
|
+
}),
|
|
990
|
+
k.group('report', ['done', 'next', 'risks'], { columns: 1, label: 'Report' }),
|
|
991
|
+
],
|
|
992
|
+
})),
|
|
993
|
+
'project.budget.line.list': list(ProjectBudgetLine, {
|
|
994
|
+
columns: [
|
|
995
|
+
'project',
|
|
996
|
+
'name',
|
|
997
|
+
'category',
|
|
998
|
+
'phase',
|
|
999
|
+
'workPackage',
|
|
1000
|
+
{ field: 'planned', sum: true },
|
|
1001
|
+
],
|
|
1002
|
+
}),
|
|
1003
|
+
'project.budget.line.form': form(ProjectBudgetLine, (k) => ({
|
|
1004
|
+
sheet: [k.group('main', ['project', 'name', 'category', 'phase', 'workPackage', 'planned'])],
|
|
1005
|
+
})),
|
|
1006
|
+
'project.role.list': list(ProjectRole, {
|
|
1007
|
+
columns: ['sequence', 'code', 'name', 'defaultHourlyCost'],
|
|
1008
|
+
inlineEdit: ['sequence', 'code', 'name', 'defaultHourlyCost'],
|
|
1009
|
+
}),
|
|
1010
|
+
'project.role.form': form(ProjectRole, (k) => ({
|
|
1011
|
+
sheet: [k.group('main', ['name', 'code', 'sequence', 'defaultHourlyCost'])],
|
|
1012
|
+
})),
|
|
1013
|
+
'project.member.list': list(ProjectMember, {
|
|
1014
|
+
columns: [
|
|
1015
|
+
'project',
|
|
1016
|
+
'user',
|
|
1017
|
+
'role',
|
|
1018
|
+
'allocation',
|
|
1019
|
+
'hourlyCost',
|
|
1020
|
+
'dateFrom',
|
|
1021
|
+
'dateTo',
|
|
1022
|
+
'overallocated',
|
|
1023
|
+
],
|
|
1024
|
+
decorations: { danger: { overallocated: true } },
|
|
1025
|
+
}),
|
|
1026
|
+
'project.member.form': form(ProjectMember, (k) => ({
|
|
1027
|
+
sheet: [
|
|
1028
|
+
k.group('main', ['project', 'user', 'role', 'allocation', 'overallocated']),
|
|
1029
|
+
k.group('when', ['dateFrom', 'dateTo', 'hourlyCost']),
|
|
1030
|
+
k.group('about', ['notes'], { columns: 1 }),
|
|
1031
|
+
],
|
|
1032
|
+
})),
|
|
1033
|
+
'project.plan.list': list(ProjectPlan, {
|
|
1034
|
+
columns: [
|
|
1035
|
+
'name',
|
|
1036
|
+
'title',
|
|
1037
|
+
'type',
|
|
1038
|
+
'manager',
|
|
1039
|
+
'sponsor',
|
|
1040
|
+
'dateStart',
|
|
1041
|
+
'dateEnd',
|
|
1042
|
+
{ field: 'estimatedBudget', sum: true },
|
|
1043
|
+
{ field: 'approvedBudget', sum: true },
|
|
1044
|
+
{ field: 'state', widget: 'badge' },
|
|
1045
|
+
],
|
|
1046
|
+
decorations: {
|
|
1047
|
+
warning: { state: 'submitted' },
|
|
1048
|
+
danger: { state: 'rejected' },
|
|
1049
|
+
neutral: { state: { in: ['completed', 'cancelled'] } },
|
|
1050
|
+
},
|
|
1051
|
+
}),
|
|
1052
|
+
'project.plan.kanban': kanban(ProjectPlan, {
|
|
1053
|
+
groupBy: 'state',
|
|
1054
|
+
card: {
|
|
1055
|
+
title: 'title',
|
|
1056
|
+
subtitle: 'name',
|
|
1057
|
+
avatar: 'manager',
|
|
1058
|
+
footer: ['estimatedBudget', { field: 'dateStart', widget: 'daysLeft' }],
|
|
1059
|
+
},
|
|
1060
|
+
}),
|
|
1061
|
+
'project.plan.form': form(ProjectPlan, (k) => ({
|
|
1062
|
+
header: {
|
|
1063
|
+
statusbar: 'state',
|
|
1064
|
+
buttons: [
|
|
1065
|
+
k.button('submit', { primary: true, label: 'Submit for approval' }),
|
|
1066
|
+
k.button('start', {
|
|
1067
|
+
primary: true,
|
|
1068
|
+
label: 'Start the project',
|
|
1069
|
+
confirm: 'Start the project? It is made from the plan, with its dates as the baseline.',
|
|
1070
|
+
}),
|
|
1071
|
+
k.button('baseline', {
|
|
1072
|
+
label: 'Take the baseline again',
|
|
1073
|
+
confirm: 'Take the baseline again? The projects’, phases’ and work packages’ current dates become the baseline.',
|
|
1074
|
+
}),
|
|
1075
|
+
k.button('complete', { label: 'Completed' }),
|
|
1076
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1077
|
+
k.button('cancel', { label: 'Cancel' }),
|
|
1078
|
+
],
|
|
1079
|
+
},
|
|
1080
|
+
sheet: [
|
|
1081
|
+
k.stats('related', [
|
|
1082
|
+
{
|
|
1083
|
+
id: 'plan_projects',
|
|
1084
|
+
label: 'Projects',
|
|
1085
|
+
model: ProjectProject,
|
|
1086
|
+
where: { plan: { $record: 'id' } },
|
|
1087
|
+
action: 'projects.action_projects',
|
|
1088
|
+
},
|
|
1089
|
+
]),
|
|
1090
|
+
k.group('main', ['title', 'name', 'type', 'priority']),
|
|
1091
|
+
k.group('people', ['requester', 'manager', 'sponsor'], { label: 'People' }),
|
|
1092
|
+
k.component('approvals', 'approvals.Panel'),
|
|
1093
|
+
k.group('when', ['dateStart', 'dateEnd', 'estimatedBudget', 'approvedBudget', 'approvedAt'], {
|
|
1094
|
+
label: 'Dates and budget',
|
|
1095
|
+
description: 'The estimate decides who approves: the sponsor, and above 1 000 000 a Projects manager too.',
|
|
1096
|
+
}),
|
|
1097
|
+
k.group('case', ['objectives', 'expectedOutcome', 'strategicGoal', 'description'], {
|
|
1098
|
+
columns: 1,
|
|
1099
|
+
label: 'The case',
|
|
1100
|
+
}),
|
|
1101
|
+
],
|
|
1102
|
+
chatter: true,
|
|
1103
|
+
})),
|
|
1104
|
+
'project.project.hierarchy': hierarchy(ProjectProject, {
|
|
1105
|
+
parent: 'parentProject',
|
|
1106
|
+
title: 'name',
|
|
1107
|
+
subtitle: 'manager',
|
|
1108
|
+
}),
|
|
1109
|
+
'project.phase.list': list(ProjectPhase, {
|
|
1110
|
+
columns: [
|
|
1111
|
+
'project',
|
|
1112
|
+
'sequence',
|
|
1113
|
+
'name',
|
|
1114
|
+
'parentPhase',
|
|
1115
|
+
'manager',
|
|
1116
|
+
'dateStart',
|
|
1117
|
+
{ field: 'dateEnd', widget: 'daysLeft' },
|
|
1118
|
+
{ field: 'status', widget: 'badge' },
|
|
1119
|
+
{ field: 'progress', widget: 'progress' },
|
|
1120
|
+
],
|
|
1121
|
+
decorations: {
|
|
1122
|
+
danger: { late: true },
|
|
1123
|
+
neutral: { status: { in: ['done', 'cancelled'] } },
|
|
1124
|
+
},
|
|
1125
|
+
}),
|
|
1126
|
+
'project.phase.form': form(ProjectPhase, (k) => ({
|
|
1127
|
+
sheet: [
|
|
1128
|
+
k.stats('related', [
|
|
1129
|
+
{
|
|
1130
|
+
id: 'phase_tasks',
|
|
1131
|
+
label: 'Tasks',
|
|
1132
|
+
model: ProjectTask,
|
|
1133
|
+
where: { phase: { $record: 'id' } },
|
|
1134
|
+
action: 'projects.action_tasks',
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
id: 'phase_work_packages',
|
|
1138
|
+
label: 'Work packages',
|
|
1139
|
+
model: ProjectWorkPackage,
|
|
1140
|
+
where: { phase: { $record: 'id' } },
|
|
1141
|
+
action: 'projects.action_work_packages',
|
|
1142
|
+
},
|
|
1143
|
+
]),
|
|
1144
|
+
k.group('main', ['name', 'code', 'project', 'parentPhase', 'sequence', 'priority']),
|
|
1145
|
+
k.group('people', ['manager', 'responsible', 'dateStart', 'dateEnd', 'status']),
|
|
1146
|
+
k.group('baseline', ['baselineStart', 'baselineEnd'], { label: 'Baseline' }),
|
|
1147
|
+
k.group('progress_group', ['progress', 'progressOverride'], {
|
|
1148
|
+
label: 'Progress',
|
|
1149
|
+
description: 'Computed from its tasks, weighted by their planned hours; set it by hand only when the tasks do not tell the whole story.',
|
|
1150
|
+
}),
|
|
1151
|
+
k.group('about', ['description'], { columns: 1 }),
|
|
1152
|
+
],
|
|
1153
|
+
chatter: true,
|
|
1154
|
+
})),
|
|
1155
|
+
'project.phase.gantt': gantt(ProjectPhase, {
|
|
1156
|
+
dateStart: 'dateStart',
|
|
1157
|
+
dateStop: 'dateEnd',
|
|
1158
|
+
title: 'name',
|
|
1159
|
+
scale: 'week',
|
|
1160
|
+
}),
|
|
1161
|
+
'project.work.package.list': list(ProjectWorkPackage, {
|
|
1162
|
+
columns: [
|
|
1163
|
+
'project',
|
|
1164
|
+
'phase',
|
|
1165
|
+
'name',
|
|
1166
|
+
'manager',
|
|
1167
|
+
{ field: 'dateEnd', widget: 'daysLeft' },
|
|
1168
|
+
{ field: 'status', widget: 'badge' },
|
|
1169
|
+
{ field: 'progress', widget: 'progress' },
|
|
1170
|
+
],
|
|
1171
|
+
decorations: { neutral: { status: { in: ['done', 'cancelled'] } } },
|
|
1172
|
+
}),
|
|
1173
|
+
'project.work.package.kanban': kanban(ProjectWorkPackage, {
|
|
1174
|
+
groupBy: 'status',
|
|
1175
|
+
card: {
|
|
1176
|
+
title: 'name',
|
|
1177
|
+
subtitle: 'project',
|
|
1178
|
+
avatar: 'manager',
|
|
1179
|
+
footer: [{ field: 'dateEnd', widget: 'daysLeft' }],
|
|
1180
|
+
progress: 'progress',
|
|
1181
|
+
},
|
|
1182
|
+
}),
|
|
1183
|
+
'project.work.package.form': form(ProjectWorkPackage, (k) => ({
|
|
1184
|
+
sheet: [
|
|
1185
|
+
k.stats('related', [
|
|
1186
|
+
{
|
|
1187
|
+
id: 'wp_tasks',
|
|
1188
|
+
label: 'Tasks',
|
|
1189
|
+
model: ProjectTask,
|
|
1190
|
+
where: { workPackage: { $record: 'id' } },
|
|
1191
|
+
action: 'projects.action_tasks',
|
|
1192
|
+
},
|
|
1193
|
+
]),
|
|
1194
|
+
k.group('main', ['name', 'code', 'project', 'phase', 'sequence']),
|
|
1195
|
+
k.group('people', ['manager', 'dateStart', 'dateEnd', 'status']),
|
|
1196
|
+
k.group('progress_group', ['progress', 'progressOverride'], { label: 'Progress' }),
|
|
1197
|
+
k.group('about', ['deliverables', 'description'], { columns: 1 }),
|
|
1198
|
+
],
|
|
1199
|
+
chatter: true,
|
|
1200
|
+
})),
|
|
1201
|
+
'project.type.list': list(ProjectType, {
|
|
1202
|
+
columns: ['sequence', 'code', 'name'],
|
|
1203
|
+
inlineEdit: ['sequence', 'code', 'name'],
|
|
1204
|
+
}),
|
|
1205
|
+
'project.type.form': form(ProjectType, (k) => ({
|
|
1206
|
+
sheet: [
|
|
1207
|
+
k.group('main', ['name', 'code', 'sequence']),
|
|
1208
|
+
k.group('about', ['description'], { columns: 1 }),
|
|
1209
|
+
],
|
|
1210
|
+
})),
|
|
1211
|
+
'project.task.category.list': list(ProjectTaskCategory, {
|
|
1212
|
+
columns: ['sequence', 'code', 'name', 'type'],
|
|
1213
|
+
inlineEdit: ['sequence', 'code', 'name', 'type'],
|
|
1214
|
+
}),
|
|
1215
|
+
'project.task.category.form': form(ProjectTaskCategory, (k) => ({
|
|
1216
|
+
sheet: [k.group('main', ['name', 'code', 'type', 'sequence'])],
|
|
1217
|
+
})),
|
|
1218
|
+
'project.tag.list': list(ProjectTag, {
|
|
1219
|
+
columns: ['name', 'color'],
|
|
1220
|
+
inlineEdit: ['name', 'color'],
|
|
1221
|
+
}),
|
|
1222
|
+
'project.tag.form': form(ProjectTag, (k) => ({ sheet: [k.group('main', ['name', 'color'])] })),
|
|
1223
|
+
'project.task.link.list': list(ProjectTaskLink, {
|
|
1224
|
+
columns: ['successor', 'predecessor', 'lag'],
|
|
1225
|
+
}),
|
|
1226
|
+
'project.task.link.form': form(ProjectTaskLink, (k) => ({
|
|
1227
|
+
sheet: [k.group('main', ['successor', 'predecessor', 'lag'])],
|
|
1228
|
+
})),
|
|
334
1229
|
'project.task.stage.list': list(ProjectTaskStage, {
|
|
335
1230
|
columns: ['sequence', 'name', 'fold', 'done'],
|
|
336
1231
|
inlineEdit: ['name', 'sequence', 'fold', 'done'],
|
|
@@ -341,9 +1236,113 @@ export const project = defineModule({
|
|
|
341
1236
|
})),
|
|
342
1237
|
},
|
|
343
1238
|
search: {
|
|
1239
|
+
'project.task.stage': search(ProjectTaskStage, {
|
|
1240
|
+
fields: ['name'],
|
|
1241
|
+
filters: {
|
|
1242
|
+
closing: { label: 'Closes the task', domain: { done: true }, group: 'done' },
|
|
1243
|
+
folded: { label: 'Folded on the board', domain: { fold: true }, group: 'fold' },
|
|
1244
|
+
},
|
|
1245
|
+
}),
|
|
1246
|
+
'project.phase': search(ProjectPhase, {
|
|
1247
|
+
fields: ['name', 'code', 'project.name'],
|
|
1248
|
+
filters: {
|
|
1249
|
+
open: {
|
|
1250
|
+
label: 'Open',
|
|
1251
|
+
domain: { status: { in: ['draft', 'in_progress', 'on_hold'] } },
|
|
1252
|
+
group: 'status',
|
|
1253
|
+
},
|
|
1254
|
+
late: {
|
|
1255
|
+
label: 'Late',
|
|
1256
|
+
domain: { late: true },
|
|
1257
|
+
},
|
|
1258
|
+
},
|
|
1259
|
+
groupBy: ['project', 'status', 'manager'],
|
|
1260
|
+
}),
|
|
1261
|
+
'project.work.package': search(ProjectWorkPackage, {
|
|
1262
|
+
fields: ['name', 'code', 'project.name', 'phase.name'],
|
|
1263
|
+
filters: {
|
|
1264
|
+
open: {
|
|
1265
|
+
label: 'Open',
|
|
1266
|
+
domain: { status: { in: ['draft', 'in_progress', 'on_hold'] } },
|
|
1267
|
+
group: 'status',
|
|
1268
|
+
},
|
|
1269
|
+
},
|
|
1270
|
+
groupBy: ['project', 'phase', 'status', 'manager'],
|
|
1271
|
+
}),
|
|
1272
|
+
'project.type': search(ProjectType, { fields: ['name', 'code'] }),
|
|
1273
|
+
'project.task.category': search(ProjectTaskCategory, {
|
|
1274
|
+
fields: ['name', 'code'],
|
|
1275
|
+
groupBy: ['type'],
|
|
1276
|
+
}),
|
|
1277
|
+
'project.tag': search(ProjectTag, { fields: ['name'] }),
|
|
1278
|
+
'project.task.link': search(ProjectTaskLink, {
|
|
1279
|
+
fields: ['successor.name', 'predecessor.name'],
|
|
1280
|
+
}),
|
|
1281
|
+
'project.risk': search(ProjectRisk, {
|
|
1282
|
+
fields: ['name', 'project.name'],
|
|
1283
|
+
filters: {
|
|
1284
|
+
open: {
|
|
1285
|
+
label: 'Open',
|
|
1286
|
+
domain: { status: { in: ['open', 'mitigating'] } },
|
|
1287
|
+
group: 'status',
|
|
1288
|
+
},
|
|
1289
|
+
severe: { label: 'High and critical', domain: { level: { in: ['high', 'critical'] } } },
|
|
1290
|
+
mine: { label: 'Mine', domain: { owner: { $env: 'uid' } } },
|
|
1291
|
+
},
|
|
1292
|
+
groupBy: ['project', 'level', 'category', 'status', 'owner'],
|
|
1293
|
+
}),
|
|
1294
|
+
'project.issue': search(ProjectIssue, {
|
|
1295
|
+
fields: ['name', 'project.name'],
|
|
1296
|
+
filters: {
|
|
1297
|
+
open: {
|
|
1298
|
+
label: 'Open',
|
|
1299
|
+
domain: { status: { in: ['open', 'in_progress'] } },
|
|
1300
|
+
group: 'status',
|
|
1301
|
+
},
|
|
1302
|
+
mine: { label: 'Mine', domain: { owner: { $env: 'uid' } } },
|
|
1303
|
+
},
|
|
1304
|
+
groupBy: ['project', 'severity', 'status', 'owner'],
|
|
1305
|
+
}),
|
|
1306
|
+
'project.change': search(ProjectChange, {
|
|
1307
|
+
fields: ['title', 'name', 'project.name'],
|
|
1308
|
+
filters: { waiting: { label: 'Waiting for approval', domain: { state: 'submitted' } } },
|
|
1309
|
+
groupBy: ['project', 'state'],
|
|
1310
|
+
}),
|
|
1311
|
+
'project.status.report': search(ProjectStatusReport, {
|
|
1312
|
+
fields: ['name', 'project.name'],
|
|
1313
|
+
filters: { drafts: { label: 'Drafts', domain: { state: 'draft' } } },
|
|
1314
|
+
groupBy: ['project', 'health', 'author', 'date:month'],
|
|
1315
|
+
}),
|
|
1316
|
+
'project.role': search(ProjectRole, { fields: ['name', 'code'] }),
|
|
1317
|
+
'project.budget.line': search(ProjectBudgetLine, {
|
|
1318
|
+
fields: ['name', 'project.name'],
|
|
1319
|
+
groupBy: ['project', 'category', 'phase'],
|
|
1320
|
+
}),
|
|
1321
|
+
'project.member': search(ProjectMember, {
|
|
1322
|
+
fields: ['user.name', 'project.name'],
|
|
1323
|
+
groupBy: ['project', 'user', 'role'],
|
|
1324
|
+
}),
|
|
1325
|
+
'project.plan': search(ProjectPlan, {
|
|
1326
|
+
fields: ['title', 'name'],
|
|
1327
|
+
filters: {
|
|
1328
|
+
mine: {
|
|
1329
|
+
label: 'Mine',
|
|
1330
|
+
domain: { or: [{ requester: { $env: 'uid' } }, { manager: { $env: 'uid' } }] },
|
|
1331
|
+
},
|
|
1332
|
+
waiting: { label: 'Waiting for approval', domain: { state: 'submitted' }, group: 'state' },
|
|
1333
|
+
approved: { label: 'Approved', domain: { state: 'approved' }, group: 'state' },
|
|
1334
|
+
},
|
|
1335
|
+
groupBy: ['state', 'type', 'manager', 'sponsor'],
|
|
1336
|
+
}),
|
|
344
1337
|
'project.project': search(ProjectProject, {
|
|
345
|
-
fields: ['name', 'partner.name'],
|
|
346
|
-
|
|
1338
|
+
fields: ['name', 'code', 'partner.name'],
|
|
1339
|
+
filters: {
|
|
1340
|
+
atRisk: { label: 'At risk', domain: { health: 'at_risk' }, group: 'health' },
|
|
1341
|
+
offTrack: { label: 'Off track', domain: { health: 'off_track' }, group: 'health' },
|
|
1342
|
+
risky: { label: 'High risk', domain: { riskLevel: { in: ['high', 'critical'] } } },
|
|
1343
|
+
programmes: { label: 'Programmes', domain: { children: { any: {} } } },
|
|
1344
|
+
},
|
|
1345
|
+
groupBy: ['health', 'manager', 'partner', 'type', 'parentProject', 'riskLevel'],
|
|
347
1346
|
}),
|
|
348
1347
|
'project.task': search(ProjectTask, {
|
|
349
1348
|
fields: ['name', 'project.name', 'partner.name'],
|
|
@@ -351,8 +1350,19 @@ export const project = defineModule({
|
|
|
351
1350
|
open: { label: 'Open', domain: { done: false }, group: 'state' },
|
|
352
1351
|
done: { label: 'Done', domain: { done: true }, group: 'state' },
|
|
353
1352
|
high: { label: 'High priority', domain: { priority: 'high' } },
|
|
1353
|
+
blocked: { label: 'Waiting for another task', domain: { blocked: true } },
|
|
1354
|
+
milestones: { label: 'Milestones', domain: { milestone: true } },
|
|
1355
|
+
top: { label: 'Not sub-tasks', domain: { parentTask: { isNull: true } } },
|
|
354
1356
|
},
|
|
355
|
-
groupBy: [
|
|
1357
|
+
groupBy: [
|
|
1358
|
+
'project',
|
|
1359
|
+
'phase',
|
|
1360
|
+
'workPackage',
|
|
1361
|
+
'stage',
|
|
1362
|
+
'assignee',
|
|
1363
|
+
'category',
|
|
1364
|
+
'deadline:week',
|
|
1365
|
+
],
|
|
356
1366
|
}),
|
|
357
1367
|
'project.timesheet': search(ProjectTimesheet, {
|
|
358
1368
|
fields: ['description', 'task.name', 'project.name'],
|