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/purchase/index.js
CHANGED
|
@@ -10,16 +10,140 @@ import { defineModule } from '../modules-sdk/index.js';
|
|
|
10
10
|
import { permissions } from '../permissions/index.js';
|
|
11
11
|
import { product } from '../product/index.js';
|
|
12
12
|
import { reporting } from '../reporting/index.js';
|
|
13
|
-
import { action, calendar, form, kanban, list, search, stat } from '../views/index.js';
|
|
13
|
+
import { action, calendar, form, kanban, list, pivot, search, stat } from '../views/index.js';
|
|
14
|
+
import { PurchaseComparison, PurchaseTechnicalComparison } from './comparison.js';
|
|
14
15
|
import { purchaseDemo } from './demo.js';
|
|
16
|
+
import { PurchaseAgreement, PurchaseVendorRequest, PurchaseWorkAcceptance } from './extras.js';
|
|
15
17
|
import { PurchaseOrder, purchaseShutro } from './module.js';
|
|
18
|
+
import { PurchaseRequest, PurchaseRequestLine } from './request.js';
|
|
19
|
+
import { PurchaseTender, PurchaseTenderResponse, registerTenderRoutes } from './tender.js';
|
|
20
|
+
import { ProductVendorPrice } from './vendorprice.js';
|
|
21
|
+
export { confirmComparison, PurchaseComparison, PurchaseComparisonLine, PurchaseTechnicalComparison, PurchaseTechnicalComparisonLine, } from './comparison.js';
|
|
22
|
+
export { agreementPriceFor, checkAgreement, PurchaseAgreement, PurchaseAgreementLine, PurchaseVendorRequest, PurchaseWorkAcceptance, PurchaseWorkAcceptanceLine, } from './extras.js';
|
|
16
23
|
export { PurchaseOrder, PurchaseOrderLine, purchaseShutro } from './module.js';
|
|
24
|
+
export { createRfqs, createTender, PurchaseRequest, PurchaseRequestLine } from './request.js';
|
|
25
|
+
export { configurePurchaseMails, PurchaseTender, PurchaseTenderLine, PurchaseTenderResponse, PurchaseTenderResponseLine, } from './tender.js';
|
|
26
|
+
export { ProductVendorPrice, vendorPriceFor } from './vendorprice.js';
|
|
17
27
|
export const purchase = defineModule({
|
|
18
28
|
shutro: purchaseShutro,
|
|
19
29
|
kosh: '^0.1.0',
|
|
20
30
|
hooks: { demo: purchaseDemo },
|
|
31
|
+
routes: (context) => {
|
|
32
|
+
registerTenderRoutes(context);
|
|
33
|
+
},
|
|
21
34
|
depends: [contacts, product, messaging, permissions, reporting],
|
|
35
|
+
// Exceptions to the module standard (RFC 0023), each with its reason.
|
|
36
|
+
standard: {
|
|
37
|
+
waive: [
|
|
38
|
+
{
|
|
39
|
+
rule: 'I1',
|
|
40
|
+
model: 'purchase.request.line',
|
|
41
|
+
reason: 'Lines import with their request (the purchase requests template).',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
rule: 'I1',
|
|
45
|
+
model: 'purchase.agreement.line',
|
|
46
|
+
reason: 'Lines import with their agreement (the agreements template).',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
rule: 'I1',
|
|
50
|
+
model: 'purchase.work.acceptance',
|
|
51
|
+
reason: 'Drawn up from an order’s service lines on screen; nothing to import.',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
rule: 'I1',
|
|
55
|
+
model: 'purchase.work.acceptance.line',
|
|
56
|
+
reason: 'Made with its acceptance from the order’s lines.',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
rule: 'I1',
|
|
60
|
+
model: 'purchase.tender.line',
|
|
61
|
+
reason: 'Lines import with their RFQ (the RFQs to vendors template).',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
rule: 'I1',
|
|
65
|
+
model: 'purchase.tender.response',
|
|
66
|
+
reason: 'Made by the system when an RFQ is sent, one per vendor.',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
rule: 'I1',
|
|
70
|
+
model: 'purchase.tender.response.line',
|
|
71
|
+
reason: 'Made with its response from the RFQ’s lines.',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
rule: 'I1',
|
|
75
|
+
model: 'purchase.comparison',
|
|
76
|
+
reason: 'Drawn up from an RFQ’s responses on screen; nothing to import.',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
rule: 'I1',
|
|
80
|
+
model: 'purchase.comparison.line',
|
|
81
|
+
reason: 'Made with its statement from the responses.',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
rule: 'I1',
|
|
85
|
+
model: 'purchase.technical.comparison',
|
|
86
|
+
reason: 'Drawn up from an RFQ’s responses on screen; nothing to import.',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
rule: 'I1',
|
|
90
|
+
model: 'purchase.technical.comparison.line',
|
|
91
|
+
reason: 'Made with its comparison from the responses.',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
22
95
|
events: [
|
|
96
|
+
{
|
|
97
|
+
topic: 'purchase.agreement.confirmed',
|
|
98
|
+
model: 'purchase.agreement',
|
|
99
|
+
label: 'Purchase agreement confirmed',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
topic: 'purchase.work_acceptance.accepted',
|
|
103
|
+
model: 'purchase.work.acceptance',
|
|
104
|
+
label: 'Work accepted',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
topic: 'purchase.vendor_request.submitted',
|
|
108
|
+
model: 'purchase.vendor.request',
|
|
109
|
+
label: 'Vendor request submitted',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
topic: 'purchase.vendor_request.approved',
|
|
113
|
+
model: 'purchase.vendor.request',
|
|
114
|
+
label: 'Vendor request approved: the vendor made',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
topic: 'purchase.request.submitted',
|
|
118
|
+
model: 'purchase.request',
|
|
119
|
+
label: 'Purchase request submitted',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
topic: 'purchase.request.approved',
|
|
123
|
+
model: 'purchase.request',
|
|
124
|
+
label: 'Purchase request approved',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
topic: 'purchase.request.rfq',
|
|
128
|
+
model: 'purchase.request',
|
|
129
|
+
label: 'Requests for quotation made from a purchase request',
|
|
130
|
+
},
|
|
131
|
+
{ topic: 'purchase.tender.sent', model: 'purchase.tender', label: 'RFQ sent to its vendors' },
|
|
132
|
+
{
|
|
133
|
+
topic: 'purchase.tender.response_submitted',
|
|
134
|
+
model: 'purchase.tender.response',
|
|
135
|
+
label: 'A vendor submitted their quotation',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
topic: 'purchase.comparison.submitted',
|
|
139
|
+
model: 'purchase.comparison',
|
|
140
|
+
label: 'Comparative statement submitted',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
topic: 'purchase.comparison.confirmed',
|
|
144
|
+
model: 'purchase.comparison',
|
|
145
|
+
label: 'Comparative statement confirmed into orders',
|
|
146
|
+
},
|
|
23
147
|
{
|
|
24
148
|
topic: 'purchase.order.confirmed',
|
|
25
149
|
model: 'purchase.order',
|
|
@@ -34,8 +158,458 @@ export const purchase = defineModule({
|
|
|
34
158
|
category: 'Inventory',
|
|
35
159
|
summary: 'Requests for quotation, purchase orders and their approvals',
|
|
36
160
|
},
|
|
161
|
+
// Requests for quotation and purchase orders sent by email with their PDF (RFC 0029 §3.3).
|
|
162
|
+
mailTemplates: [
|
|
163
|
+
{
|
|
164
|
+
key: 'purchase_order',
|
|
165
|
+
name: 'Purchase order',
|
|
166
|
+
model: 'purchase.order',
|
|
167
|
+
document: 'purchase.purchase_order',
|
|
168
|
+
subject: '{{company.name}}: {{name}}',
|
|
169
|
+
body: 'Dear {{partner.name}},\n\nPlease find attached {{name}} of {{amountTotal}}, expected on {{datePlanned}}. Kindly confirm the order and the delivery date.\n\n{{company.name}}',
|
|
170
|
+
translations: {
|
|
171
|
+
bn_BD: {
|
|
172
|
+
subject: '{{company.name}}: {{name}}',
|
|
173
|
+
body: 'প্রিয় {{partner.name}},\n\n{{amountTotal}}-এর {{name}} সংযুক্ত করা হলো, প্রত্যাশিত তারিখ {{datePlanned}}। অনুগ্রহ করে অর্ডার ও সরবরাহের তারিখ নিশ্চিত করুন।\n\n{{company.name}}',
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
sendable: [{ model: 'purchase.order', template: 'purchase.purchase_order', partner: 'partner' }],
|
|
179
|
+
documents: [
|
|
180
|
+
{
|
|
181
|
+
key: 'purchase_comparison',
|
|
182
|
+
name: 'Comparative statement',
|
|
183
|
+
model: 'purchase.comparison',
|
|
184
|
+
layout: {
|
|
185
|
+
paper: 'A4',
|
|
186
|
+
orientation: 'landscape',
|
|
187
|
+
header: '{{company.name}}',
|
|
188
|
+
footer: 'Page {{page}} of {{pages}}',
|
|
189
|
+
blocks: [
|
|
190
|
+
{ kind: 'heading', id: 'title', text: 'Comparative statement {{name}}', level: 1 },
|
|
191
|
+
{
|
|
192
|
+
kind: 'fields',
|
|
193
|
+
id: 'about',
|
|
194
|
+
items: [
|
|
195
|
+
{ label: 'RFQ', bind: 'tender.name' },
|
|
196
|
+
{ label: 'CS date', bind: 'date' },
|
|
197
|
+
{ label: 'Expiry date', bind: 'expiryDate' },
|
|
198
|
+
{ label: 'Delivery date', bind: 'dateDelivery' },
|
|
199
|
+
{ label: 'Awarded total', bind: 'amountTotal' },
|
|
200
|
+
{ label: 'Status', bind: 'state' },
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
kind: 'table',
|
|
205
|
+
id: 'lines',
|
|
206
|
+
bind: 'lines',
|
|
207
|
+
columns: [
|
|
208
|
+
{ label: 'Product', bind: 'tenderLine.product.name' },
|
|
209
|
+
{ label: 'Vendor', bind: 'response.vendor.name' },
|
|
210
|
+
{ label: 'CS qty', bind: 'csQty' },
|
|
211
|
+
{ label: 'Quote', bind: 'quote' },
|
|
212
|
+
{ label: 'Nego 1', bind: 'nego1' },
|
|
213
|
+
{ label: 'Nego 2', bind: 'nego2' },
|
|
214
|
+
{ label: 'Final', bind: 'finalPrice' },
|
|
215
|
+
{ label: 'Total', bind: 'total' },
|
|
216
|
+
{ label: 'Selected', bind: 'selected' },
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
{ kind: 'text', id: 'note', text: '{{note}}' },
|
|
220
|
+
{ kind: 'qr', id: 'qr', bind: 'name', size: 24, label: 'CS reference' },
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
key: 'purchase_technical_comparison',
|
|
226
|
+
name: 'Technical comparison',
|
|
227
|
+
model: 'purchase.technical.comparison',
|
|
228
|
+
layout: {
|
|
229
|
+
paper: 'A4',
|
|
230
|
+
header: '{{company.name}}',
|
|
231
|
+
blocks: [
|
|
232
|
+
{ kind: 'heading', id: 'title', text: 'Technical comparison {{name}}', level: 1 },
|
|
233
|
+
{
|
|
234
|
+
kind: 'fields',
|
|
235
|
+
id: 'about',
|
|
236
|
+
items: [
|
|
237
|
+
{ label: 'RFQ', bind: 'tender.name' },
|
|
238
|
+
{ label: 'Assigned engineer', bind: 'engineer.name' },
|
|
239
|
+
{ label: 'CS type', bind: 'kind' },
|
|
240
|
+
{ label: 'Date', bind: 'date' },
|
|
241
|
+
{ label: 'Status', bind: 'state' },
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
kind: 'table',
|
|
246
|
+
id: 'lines',
|
|
247
|
+
bind: 'lines',
|
|
248
|
+
columns: [
|
|
249
|
+
{ label: 'Vendor response', bind: 'response.name' },
|
|
250
|
+
{ label: 'Score', bind: 'score' },
|
|
251
|
+
{ label: 'Meets the specifications', bind: 'meetsSpecifications' },
|
|
252
|
+
{ label: 'Note', bind: 'note' },
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
{ kind: 'text', id: 'remarks', text: '{{remarks}}' },
|
|
256
|
+
{ kind: 'qr', id: 'qr', bind: 'name', size: 24, label: 'TCS reference' },
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
key: 'purchase_tender',
|
|
262
|
+
name: 'RFQ to vendors',
|
|
263
|
+
model: 'purchase.tender',
|
|
264
|
+
layout: {
|
|
265
|
+
paper: 'A4',
|
|
266
|
+
header: '{{company.name}}',
|
|
267
|
+
footer: 'Page {{page}} of {{pages}}',
|
|
268
|
+
blocks: [
|
|
269
|
+
{ kind: 'heading', id: 'title', text: 'Request for quotation {{name}}', level: 1 },
|
|
270
|
+
{
|
|
271
|
+
kind: 'fields',
|
|
272
|
+
id: 'terms',
|
|
273
|
+
items: [
|
|
274
|
+
{ label: 'Topic', bind: 'topic' },
|
|
275
|
+
{ label: 'Response deadline', bind: 'deadline' },
|
|
276
|
+
{ label: 'Delivery date', bind: 'dateDelivery' },
|
|
277
|
+
{ label: 'Payment terms', bind: 'paymentTerms' },
|
|
278
|
+
{ label: 'Sourcing', bind: 'sourcing' },
|
|
279
|
+
{ label: 'Status', bind: 'state' },
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
kind: 'table',
|
|
284
|
+
id: 'lines',
|
|
285
|
+
bind: 'lines',
|
|
286
|
+
columns: [
|
|
287
|
+
{ label: 'Product', bind: 'product.name' },
|
|
288
|
+
{ label: 'Description', bind: 'name' },
|
|
289
|
+
{ label: 'Unit', bind: 'uom.name' },
|
|
290
|
+
{ label: 'Quantity', bind: 'quantity' },
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
{ kind: 'text', id: 'note', text: '{{note}}' },
|
|
294
|
+
{ kind: 'qr', id: 'qr', bind: 'name', size: 24, label: 'RFQ reference' },
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
key: 'purchase_agreement',
|
|
300
|
+
name: 'Purchase agreement',
|
|
301
|
+
model: 'purchase.agreement',
|
|
302
|
+
layout: {
|
|
303
|
+
paper: 'A4',
|
|
304
|
+
header: '{{company.name}}',
|
|
305
|
+
footer: 'Page {{page}} of {{pages}}',
|
|
306
|
+
blocks: [
|
|
307
|
+
{ kind: 'heading', id: 'title', text: 'Purchase agreement {{name}}', level: 1 },
|
|
308
|
+
{
|
|
309
|
+
kind: 'fields',
|
|
310
|
+
id: 'about',
|
|
311
|
+
items: [
|
|
312
|
+
{ label: 'Vendor', bind: 'vendor.name' },
|
|
313
|
+
{ label: 'Agreement type', bind: 'kind' },
|
|
314
|
+
{ label: 'Valid from', bind: 'dateStart' },
|
|
315
|
+
{ label: 'Valid to', bind: 'dateEnd' },
|
|
316
|
+
{ label: 'Vendor reference', bind: 'reference' },
|
|
317
|
+
{ label: 'Status', bind: 'state' },
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
kind: 'table',
|
|
322
|
+
id: 'lines',
|
|
323
|
+
bind: 'lines',
|
|
324
|
+
columns: [
|
|
325
|
+
{ label: 'Product', bind: 'product.name' },
|
|
326
|
+
{ label: 'Description', bind: 'name' },
|
|
327
|
+
{ label: 'Unit', bind: 'uom.name' },
|
|
328
|
+
{ label: 'Quantity', bind: 'quantity' },
|
|
329
|
+
{ label: 'Ordered', bind: 'qtyOrdered' },
|
|
330
|
+
{ label: 'Unit price', bind: 'priceUnit' },
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
{ kind: 'text', id: 'note', text: '{{note}}' },
|
|
334
|
+
{ kind: 'qr', id: 'qr', bind: 'name', size: 24, label: 'Agreement reference' },
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
key: 'purchase_work_acceptance',
|
|
340
|
+
name: 'Work acceptance',
|
|
341
|
+
model: 'purchase.work.acceptance',
|
|
342
|
+
layout: {
|
|
343
|
+
paper: 'A4',
|
|
344
|
+
header: '{{company.name}}',
|
|
345
|
+
blocks: [
|
|
346
|
+
{ kind: 'heading', id: 'title', text: 'Work acceptance {{name}}', level: 1 },
|
|
347
|
+
{
|
|
348
|
+
kind: 'fields',
|
|
349
|
+
id: 'about',
|
|
350
|
+
items: [
|
|
351
|
+
{ label: 'Vendor', bind: 'vendor.name' },
|
|
352
|
+
{ label: 'Purchase order', bind: 'order.name' },
|
|
353
|
+
{ label: 'Responsible person', bind: 'responsible.name' },
|
|
354
|
+
{ label: 'Vendor invoice reference', bind: 'invoiceReference' },
|
|
355
|
+
{ label: 'Accepted on', bind: 'acceptedOn' },
|
|
356
|
+
{ label: 'Total', bind: 'amountTotal' },
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
kind: 'table',
|
|
361
|
+
id: 'lines',
|
|
362
|
+
bind: 'lines',
|
|
363
|
+
columns: [
|
|
364
|
+
{ label: 'Product', bind: 'product.name' },
|
|
365
|
+
{ label: 'Description', bind: 'name' },
|
|
366
|
+
{ label: 'Accepted', bind: 'quantity' },
|
|
367
|
+
{ label: 'Unit', bind: 'uom.name' },
|
|
368
|
+
{ label: 'Unit price', bind: 'priceUnit' },
|
|
369
|
+
{ label: 'Subtotal', bind: 'subtotal' },
|
|
370
|
+
],
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
kind: 'text',
|
|
374
|
+
id: 'signatures',
|
|
375
|
+
text: 'Accepted by: ____________________ Vendor: ____________________',
|
|
376
|
+
},
|
|
377
|
+
{ kind: 'qr', id: 'qr', bind: 'name', size: 24, label: 'Acceptance reference' },
|
|
378
|
+
],
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
key: 'purchase_vendor_request',
|
|
383
|
+
name: 'Vendor request',
|
|
384
|
+
model: 'purchase.vendor.request',
|
|
385
|
+
layout: {
|
|
386
|
+
paper: 'A4',
|
|
387
|
+
header: '{{company.name}}',
|
|
388
|
+
blocks: [
|
|
389
|
+
{ kind: 'heading', id: 'title', text: 'Vendor request: {{name}}', level: 1 },
|
|
390
|
+
{
|
|
391
|
+
kind: 'fields',
|
|
392
|
+
id: 'about',
|
|
393
|
+
items: [
|
|
394
|
+
{ label: 'Request type', bind: 'kind' },
|
|
395
|
+
{ label: 'Street', bind: 'street' },
|
|
396
|
+
{ label: 'City', bind: 'city' },
|
|
397
|
+
{ label: 'Country', bind: 'country' },
|
|
398
|
+
{ label: 'NID / birth certificate', bind: 'nid' },
|
|
399
|
+
{ label: 'Trade licence number', bind: 'tradeLicense' },
|
|
400
|
+
{ label: 'Proprietor name', bind: 'proprietorName' },
|
|
401
|
+
{ label: 'Proprietor mobile', bind: 'proprietorMobile' },
|
|
402
|
+
{ label: 'Requested by', bind: 'requester.name' },
|
|
403
|
+
{ label: 'Status', bind: 'state' },
|
|
404
|
+
],
|
|
405
|
+
},
|
|
406
|
+
{ kind: 'text', id: 'note', text: '{{note}}' },
|
|
407
|
+
],
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
key: 'purchase_request',
|
|
412
|
+
name: 'Purchase request',
|
|
413
|
+
model: 'purchase.request',
|
|
414
|
+
layout: {
|
|
415
|
+
paper: 'A4',
|
|
416
|
+
header: '{{company.name}}',
|
|
417
|
+
footer: 'Page {{page}} of {{pages}}',
|
|
418
|
+
blocks: [
|
|
419
|
+
{ kind: 'heading', id: 'title', text: 'Purchase request {{name}}', level: 1 },
|
|
420
|
+
{
|
|
421
|
+
kind: 'fields',
|
|
422
|
+
id: 'who',
|
|
423
|
+
items: [
|
|
424
|
+
{ label: 'Requested by', bind: 'requester.name' },
|
|
425
|
+
{ label: 'Request date', bind: 'date' },
|
|
426
|
+
{ label: 'Needed by', bind: 'dateRequired' },
|
|
427
|
+
{ label: 'Priority', bind: 'priority' },
|
|
428
|
+
{ label: 'Preferred vendor', bind: 'vendor.name' },
|
|
429
|
+
{ label: 'Status', bind: 'state' },
|
|
430
|
+
],
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
kind: 'table',
|
|
434
|
+
id: 'lines',
|
|
435
|
+
bind: 'lines',
|
|
436
|
+
columns: [
|
|
437
|
+
{ label: 'Product', bind: 'product.name' },
|
|
438
|
+
{ label: 'Description', bind: 'name' },
|
|
439
|
+
{ label: 'Unit', bind: 'uom.name' },
|
|
440
|
+
{ label: 'Requested', bind: 'quantity' },
|
|
441
|
+
{ label: 'Approved', bind: 'qtyApproved' },
|
|
442
|
+
{ label: 'Ordered', bind: 'qtyOrdered' },
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
{ kind: 'text', id: 'purpose', text: '{{purpose}}' },
|
|
446
|
+
{ kind: 'qr', id: 'qr', bind: 'name', size: 24, label: 'Request reference' },
|
|
447
|
+
],
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
key: 'purchase_order',
|
|
452
|
+
name: 'Purchase order',
|
|
453
|
+
model: 'purchase.order',
|
|
454
|
+
layout: {
|
|
455
|
+
paper: 'A4',
|
|
456
|
+
header: '{{company.name}}',
|
|
457
|
+
footer: 'Page {{page}} of {{pages}}',
|
|
458
|
+
blocks: [
|
|
459
|
+
{ kind: 'heading', id: 'title', text: 'Purchase order {{name}}', level: 1 },
|
|
460
|
+
{
|
|
461
|
+
kind: 'fields',
|
|
462
|
+
id: 'vendor',
|
|
463
|
+
items: [
|
|
464
|
+
{ label: 'Vendor', bind: 'partner.name' },
|
|
465
|
+
{ label: 'Vendor reference', bind: 'partnerReference' },
|
|
466
|
+
{ label: 'Order date', bind: 'dateOrder' },
|
|
467
|
+
{ label: 'Expected', bind: 'datePlanned' },
|
|
468
|
+
{ label: 'Buyer', bind: 'user.name' },
|
|
469
|
+
{ label: 'Currency', bind: 'currency.name' },
|
|
470
|
+
{ label: 'Status', bind: 'state' },
|
|
471
|
+
],
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
kind: 'table',
|
|
475
|
+
id: 'lines',
|
|
476
|
+
bind: 'lines',
|
|
477
|
+
columns: [
|
|
478
|
+
{ label: 'Product', bind: 'product.name' },
|
|
479
|
+
{ label: 'Description', bind: 'name' },
|
|
480
|
+
{ label: 'Quantity', bind: 'quantity' },
|
|
481
|
+
{ label: 'Unit', bind: 'uom.name' },
|
|
482
|
+
{ label: 'Unit price', bind: 'priceUnit' },
|
|
483
|
+
{ label: 'Amount', bind: 'subtotal' },
|
|
484
|
+
],
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
kind: 'fields',
|
|
488
|
+
id: 'totals',
|
|
489
|
+
items: [
|
|
490
|
+
{ label: 'Untaxed', bind: 'amountUntaxed' },
|
|
491
|
+
{ label: 'Taxes', bind: 'amountTax' },
|
|
492
|
+
{ label: 'Total', bind: 'amountTotal' },
|
|
493
|
+
],
|
|
494
|
+
},
|
|
495
|
+
{ kind: 'text', id: 'note', text: '{{note}}' },
|
|
496
|
+
{ kind: 'signature', id: 'sign', labels: ['Ordered by', 'Approved by'] },
|
|
497
|
+
],
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
],
|
|
501
|
+
importTemplates: [
|
|
502
|
+
{
|
|
503
|
+
key: 'purchase_tenders',
|
|
504
|
+
model: 'purchase.tender',
|
|
505
|
+
label: 'RFQs to vendors',
|
|
506
|
+
columns: [
|
|
507
|
+
{ header: 'Topic', field: 'topic' },
|
|
508
|
+
{ header: 'Response deadline', field: 'deadline' },
|
|
509
|
+
{ header: 'Delivery date', field: 'dateDelivery' },
|
|
510
|
+
{ header: 'Sourcing', field: 'sourcing' },
|
|
511
|
+
{ header: 'Vendors', field: 'vendors' },
|
|
512
|
+
{ header: 'Payment terms', field: 'paymentTerms' },
|
|
513
|
+
{ header: 'Lines › Product', field: 'lines.product' },
|
|
514
|
+
{ header: 'Lines › Quantity', field: 'lines.quantity' },
|
|
515
|
+
],
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
key: 'purchase_agreements',
|
|
519
|
+
model: 'purchase.agreement',
|
|
520
|
+
label: 'Purchase agreements',
|
|
521
|
+
columns: [
|
|
522
|
+
{ header: 'Vendor', field: 'vendor' },
|
|
523
|
+
{ header: 'Agreement type', field: 'kind' },
|
|
524
|
+
{ header: 'Valid from', field: 'dateStart' },
|
|
525
|
+
{ header: 'Valid to', field: 'dateEnd' },
|
|
526
|
+
{ header: 'Vendor reference', field: 'reference' },
|
|
527
|
+
{ header: 'Lines › Product', field: 'lines.product' },
|
|
528
|
+
{ header: 'Lines › Quantity', field: 'lines.quantity' },
|
|
529
|
+
{ header: 'Lines › Unit price', field: 'lines.priceUnit' },
|
|
530
|
+
],
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
key: 'purchase_vendor_requests',
|
|
534
|
+
model: 'purchase.vendor.request',
|
|
535
|
+
label: 'Vendor requests',
|
|
536
|
+
columns: [
|
|
537
|
+
{ header: 'Vendor name', field: 'name' },
|
|
538
|
+
{ header: 'Request type', field: 'kind' },
|
|
539
|
+
{ header: 'Street', field: 'street' },
|
|
540
|
+
{ header: 'City', field: 'city' },
|
|
541
|
+
{ header: 'Country', field: 'country' },
|
|
542
|
+
{ header: 'NID / birth certificate', field: 'nid' },
|
|
543
|
+
{ header: 'Trade licence number', field: 'tradeLicense' },
|
|
544
|
+
{ header: 'Proprietor name', field: 'proprietorName' },
|
|
545
|
+
{ header: 'Proprietor mobile', field: 'proprietorMobile' },
|
|
546
|
+
{ header: 'Email', field: 'email' },
|
|
547
|
+
{ header: 'Phone', field: 'phone' },
|
|
548
|
+
],
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
key: 'purchase_requests',
|
|
552
|
+
model: 'purchase.request',
|
|
553
|
+
label: 'Purchase requests',
|
|
554
|
+
columns: [
|
|
555
|
+
{ header: 'Requested by', field: 'requester' },
|
|
556
|
+
{ header: 'Needed by', field: 'dateRequired' },
|
|
557
|
+
{ header: 'Priority', field: 'priority' },
|
|
558
|
+
{ header: 'Preferred vendor', field: 'vendor' },
|
|
559
|
+
{ header: 'Purpose', field: 'purpose' },
|
|
560
|
+
{ header: 'Lines › Product', field: 'lines.product' },
|
|
561
|
+
{ header: 'Lines › Quantity', field: 'lines.quantity' },
|
|
562
|
+
],
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
key: 'vendor_prices',
|
|
566
|
+
model: 'product.vendor.price',
|
|
567
|
+
label: 'Vendor prices',
|
|
568
|
+
columns: [
|
|
569
|
+
{ header: 'Vendor', field: 'vendor' },
|
|
570
|
+
{ header: 'Product', field: 'product' },
|
|
571
|
+
{ header: 'Category', field: 'category' },
|
|
572
|
+
{ header: 'Vendor code', field: 'vendorCode' },
|
|
573
|
+
{ header: 'Vendor name', field: 'vendorName' },
|
|
574
|
+
{ header: 'Currency', field: 'currency' },
|
|
575
|
+
{ header: 'From quantity', field: 'minQuantity' },
|
|
576
|
+
{ header: 'Price', field: 'price' },
|
|
577
|
+
{ header: 'Valid from', field: 'dateFrom' },
|
|
578
|
+
{ header: 'Valid until', field: 'dateTo' },
|
|
579
|
+
{ header: 'Lead days', field: 'leadDays' },
|
|
580
|
+
{ header: 'Preferred', field: 'preferred' },
|
|
581
|
+
],
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
key: 'purchase_order',
|
|
585
|
+
model: 'purchase.order',
|
|
586
|
+
label: 'Purchase order',
|
|
587
|
+
columns: [
|
|
588
|
+
{ header: 'Buyer', field: 'user' },
|
|
589
|
+
{ header: 'Vendor', field: 'partner' },
|
|
590
|
+
{ header: 'Vendor reference', field: 'partnerReference' },
|
|
591
|
+
{ header: 'Currency', field: 'currency' },
|
|
592
|
+
{ header: 'Order date', field: 'dateOrder' },
|
|
593
|
+
{ header: 'Expected arrival', field: 'datePlanned' },
|
|
594
|
+
{ header: 'Source document', field: 'origin' },
|
|
595
|
+
{ header: 'Terms and conditions', field: 'note' },
|
|
596
|
+
{ header: 'Lines › Product', field: 'lines.product' },
|
|
597
|
+
{ header: 'Lines › Description', field: 'lines.name' },
|
|
598
|
+
{ header: 'Lines › Quantity', field: 'lines.quantity' },
|
|
599
|
+
{ header: 'Lines › Unit', field: 'lines.uom' },
|
|
600
|
+
{ header: 'Lines › Unit price', field: 'lines.priceUnit' },
|
|
601
|
+
],
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
// Bangla for the labels it serves (RFC 0023 §3.1; `pnpm i18n:extract`).
|
|
605
|
+
i18n: { bn: () => import('./i18n/bn.js') },
|
|
37
606
|
accessLevels: {
|
|
38
|
-
|
|
607
|
+
requester: { label: 'Requester (own purchase requests)', groups: ['purchase.requester'] },
|
|
608
|
+
user: {
|
|
609
|
+
label: 'Buyer (own orders, every request)',
|
|
610
|
+
groups: ['purchase.user'],
|
|
611
|
+
implies: ['requester'],
|
|
612
|
+
},
|
|
39
613
|
manager: { label: 'Manager (all orders)', groups: ['purchase.manager'], implies: ['user'] },
|
|
40
614
|
director: { label: 'Director', groups: ['purchase.director'], implies: ['manager'] },
|
|
41
615
|
},
|
|
@@ -56,6 +630,46 @@ export const purchase = defineModule({
|
|
|
56
630
|
],
|
|
57
631
|
},
|
|
58
632
|
approvals: [
|
|
633
|
+
{
|
|
634
|
+
name: 'Vendor request approvals',
|
|
635
|
+
model: 'purchase.vendor.request',
|
|
636
|
+
onApproved: 'approve',
|
|
637
|
+
onRejected: 'reject',
|
|
638
|
+
levels: [{ name: 'Purchase manager', condition: {}, approverRole: 'purchase.manager' }],
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
name: 'Comparative statement approvals',
|
|
642
|
+
model: 'purchase.comparison',
|
|
643
|
+
onApproved: 'approve',
|
|
644
|
+
onRejected: 'reject',
|
|
645
|
+
levels: [
|
|
646
|
+
{ name: 'Purchase manager', condition: {}, approverRole: 'purchase.manager' },
|
|
647
|
+
{
|
|
648
|
+
name: 'Purchase director',
|
|
649
|
+
condition: { amountTotal: { gt: '1000000' } },
|
|
650
|
+
approverRole: 'purchase.director',
|
|
651
|
+
},
|
|
652
|
+
],
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
name: 'Purchase request approvals',
|
|
656
|
+
model: 'purchase.request',
|
|
657
|
+
onApproved: 'approve',
|
|
658
|
+
onRejected: 'reject',
|
|
659
|
+
levels: [
|
|
660
|
+
{
|
|
661
|
+
name: 'Department head',
|
|
662
|
+
condition: {},
|
|
663
|
+
approver: 'department_head',
|
|
664
|
+
approverRole: 'purchase.manager',
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: 'Purchase manager',
|
|
668
|
+
condition: { amountEstimate: { gt: '100000' } },
|
|
669
|
+
approverRole: 'purchase.manager',
|
|
670
|
+
},
|
|
671
|
+
],
|
|
672
|
+
},
|
|
59
673
|
{
|
|
60
674
|
name: 'Purchase approvals',
|
|
61
675
|
model: 'purchase.order',
|
|
@@ -78,6 +692,34 @@ export const purchase = defineModule({
|
|
|
78
692
|
// The Overview (RFC 0022 step 2): spend against last month, what waits, who we buy from.
|
|
79
693
|
overview: {
|
|
80
694
|
cards: [
|
|
695
|
+
// The RFQ dashboard (RFC 0032 §3.4): RFQs to vendors by state.
|
|
696
|
+
{
|
|
697
|
+
id: 'tenders_sent',
|
|
698
|
+
title: 'RFQs waiting for responses',
|
|
699
|
+
kind: 'kpi',
|
|
700
|
+
model: 'purchase.tender',
|
|
701
|
+
measure: 'count',
|
|
702
|
+
filter: { state: 'sent' },
|
|
703
|
+
w: 3,
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
id: 'tenders_received',
|
|
707
|
+
title: 'RFQs with responses',
|
|
708
|
+
kind: 'kpi',
|
|
709
|
+
model: 'purchase.tender',
|
|
710
|
+
measure: 'count',
|
|
711
|
+
filter: { state: { in: ['received', 'comparing'] } },
|
|
712
|
+
w: 3,
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
id: 'comparisons_waiting',
|
|
716
|
+
title: 'Comparative statements waiting',
|
|
717
|
+
kind: 'kpi',
|
|
718
|
+
model: 'purchase.comparison',
|
|
719
|
+
measure: 'count',
|
|
720
|
+
filter: { state: 'submitted' },
|
|
721
|
+
w: 3,
|
|
722
|
+
},
|
|
81
723
|
{
|
|
82
724
|
id: 'spend_month',
|
|
83
725
|
title: 'Purchases this month',
|
|
@@ -173,6 +815,13 @@ export const purchase = defineModule({
|
|
|
173
815
|
where: { product: { $record: 'id' }, 'order.state': { in: ['purchase', 'done'] } },
|
|
174
816
|
measure: { sum: 'quantity' },
|
|
175
817
|
}),
|
|
818
|
+
stat({
|
|
819
|
+
id: 'product_vendor_prices',
|
|
820
|
+
label: 'Vendor prices',
|
|
821
|
+
model: ProductVendorPrice,
|
|
822
|
+
where: { product: { $record: 'id' } },
|
|
823
|
+
action: 'purchase.action_vendor_prices',
|
|
824
|
+
}),
|
|
176
825
|
],
|
|
177
826
|
},
|
|
178
827
|
],
|
|
@@ -198,12 +847,56 @@ export const purchase = defineModule({
|
|
|
198
847
|
measure: { sum: 'amountTotal' },
|
|
199
848
|
action: 'purchase.action_orders',
|
|
200
849
|
}),
|
|
850
|
+
stat({
|
|
851
|
+
id: 'vendor_prices',
|
|
852
|
+
label: 'Vendor prices',
|
|
853
|
+
model: ProductVendorPrice,
|
|
854
|
+
where: { vendor: { $record: 'id' } },
|
|
855
|
+
action: 'purchase.action_vendor_prices',
|
|
856
|
+
}),
|
|
201
857
|
],
|
|
202
858
|
},
|
|
203
859
|
],
|
|
204
860
|
},
|
|
205
861
|
],
|
|
206
862
|
actions: {
|
|
863
|
+
'purchase.action_agreements': action(PurchaseAgreement, {
|
|
864
|
+
label: 'Agreements',
|
|
865
|
+
views: ['list', 'form'],
|
|
866
|
+
}),
|
|
867
|
+
'purchase.action_work_acceptances': action(PurchaseWorkAcceptance, {
|
|
868
|
+
label: 'Work acceptance',
|
|
869
|
+
views: ['list', 'form'],
|
|
870
|
+
}),
|
|
871
|
+
'purchase.action_vendor_requests': action(PurchaseVendorRequest, {
|
|
872
|
+
label: 'Vendor requests',
|
|
873
|
+
views: ['list', 'form'],
|
|
874
|
+
}),
|
|
875
|
+
'purchase.action_requests': action(PurchaseRequest, {
|
|
876
|
+
label: 'Purchase requests',
|
|
877
|
+
views: ['list', 'kanban', 'form'],
|
|
878
|
+
}),
|
|
879
|
+
'purchase.action_request_lines': action(PurchaseRequestLine, {
|
|
880
|
+
label: 'Request lines',
|
|
881
|
+
views: ['list', 'pivot'],
|
|
882
|
+
defaultFilters: ['open'],
|
|
883
|
+
}),
|
|
884
|
+
'purchase.action_tenders': action(PurchaseTender, {
|
|
885
|
+
label: 'RFQs to vendors',
|
|
886
|
+
views: ['list', 'kanban', 'form'],
|
|
887
|
+
}),
|
|
888
|
+
'purchase.action_responses': action(PurchaseTenderResponse, {
|
|
889
|
+
label: 'Vendor responses',
|
|
890
|
+
views: ['list', 'form'],
|
|
891
|
+
}),
|
|
892
|
+
'purchase.action_comparisons': action(PurchaseComparison, {
|
|
893
|
+
label: 'Comparative statements',
|
|
894
|
+
views: ['list', 'kanban', 'form'],
|
|
895
|
+
}),
|
|
896
|
+
'purchase.action_technical_comparisons': action(PurchaseTechnicalComparison, {
|
|
897
|
+
label: 'Technical comparisons',
|
|
898
|
+
views: ['list', 'form'],
|
|
899
|
+
}),
|
|
207
900
|
'purchase.action_rfqs': action(PurchaseOrder, {
|
|
208
901
|
label: 'Requests for quotation',
|
|
209
902
|
views: ['list', 'kanban', 'form'],
|
|
@@ -220,6 +913,10 @@ export const purchase = defineModule({
|
|
|
220
913
|
domain: { state: 'to_approve' },
|
|
221
914
|
visibleTo: ['purchase.manager'],
|
|
222
915
|
}),
|
|
916
|
+
'purchase.action_vendor_prices': action(ProductVendorPrice, {
|
|
917
|
+
label: 'Vendor prices',
|
|
918
|
+
views: ['list', 'form'],
|
|
919
|
+
}),
|
|
223
920
|
'purchase.action_vendors': {
|
|
224
921
|
model: 'res.partner',
|
|
225
922
|
label: 'Vendors',
|
|
@@ -229,6 +926,76 @@ export const purchase = defineModule({
|
|
|
229
926
|
},
|
|
230
927
|
menus: [
|
|
231
928
|
{ id: 'purchase.root', label: 'Purchase', app: 'purchase' },
|
|
929
|
+
{
|
|
930
|
+
id: 'purchase.agreements',
|
|
931
|
+
parent: 'purchase.root',
|
|
932
|
+
label: 'Agreements',
|
|
933
|
+
action: 'purchase.action_agreements',
|
|
934
|
+
sequence: 11,
|
|
935
|
+
visibleTo: ['purchase.user'],
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
id: 'purchase.work_acceptances',
|
|
939
|
+
parent: 'purchase.root',
|
|
940
|
+
label: 'Work acceptance',
|
|
941
|
+
action: 'purchase.action_work_acceptances',
|
|
942
|
+
sequence: 12,
|
|
943
|
+
visibleTo: ['purchase.user'],
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
id: 'purchase.vendor_requests',
|
|
947
|
+
parent: 'purchase.root',
|
|
948
|
+
label: 'Vendor requests',
|
|
949
|
+
action: 'purchase.action_vendor_requests',
|
|
950
|
+
sequence: 13,
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
id: 'purchase.requests',
|
|
954
|
+
parent: 'purchase.root',
|
|
955
|
+
label: 'Purchase requests',
|
|
956
|
+
action: 'purchase.action_requests',
|
|
957
|
+
sequence: 0,
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
id: 'purchase.request_lines',
|
|
961
|
+
parent: 'purchase.root',
|
|
962
|
+
label: 'Request lines',
|
|
963
|
+
action: 'purchase.action_request_lines',
|
|
964
|
+
sequence: 6,
|
|
965
|
+
visibleTo: ['purchase.user'],
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
id: 'purchase.tenders',
|
|
969
|
+
parent: 'purchase.root',
|
|
970
|
+
label: 'RFQs to vendors',
|
|
971
|
+
action: 'purchase.action_tenders',
|
|
972
|
+
sequence: 7,
|
|
973
|
+
visibleTo: ['purchase.user'],
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
id: 'purchase.responses',
|
|
977
|
+
parent: 'purchase.root',
|
|
978
|
+
label: 'Vendor responses',
|
|
979
|
+
action: 'purchase.action_responses',
|
|
980
|
+
sequence: 8,
|
|
981
|
+
visibleTo: ['purchase.user'],
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
id: 'purchase.comparisons',
|
|
985
|
+
parent: 'purchase.root',
|
|
986
|
+
label: 'Comparative statements',
|
|
987
|
+
action: 'purchase.action_comparisons',
|
|
988
|
+
sequence: 9,
|
|
989
|
+
visibleTo: ['purchase.user'],
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
id: 'purchase.technical_comparisons',
|
|
993
|
+
parent: 'purchase.root',
|
|
994
|
+
label: 'Technical comparisons',
|
|
995
|
+
action: 'purchase.action_technical_comparisons',
|
|
996
|
+
sequence: 10,
|
|
997
|
+
visibleTo: ['purchase.user'],
|
|
998
|
+
},
|
|
232
999
|
{
|
|
233
1000
|
id: 'purchase.rfqs',
|
|
234
1001
|
parent: 'purchase.root',
|
|
@@ -258,8 +1025,357 @@ export const purchase = defineModule({
|
|
|
258
1025
|
action: 'purchase.action_vendors',
|
|
259
1026
|
sequence: 4,
|
|
260
1027
|
},
|
|
1028
|
+
{
|
|
1029
|
+
id: 'purchase.vendor_prices',
|
|
1030
|
+
parent: 'purchase.root',
|
|
1031
|
+
label: 'Vendor prices',
|
|
1032
|
+
action: 'purchase.action_vendor_prices',
|
|
1033
|
+
sequence: 5,
|
|
1034
|
+
},
|
|
261
1035
|
],
|
|
262
1036
|
views: {
|
|
1037
|
+
'purchase.agreement.list': list(PurchaseAgreement, {
|
|
1038
|
+
columns: ['name', 'vendor', 'kind', 'dateStart', 'dateEnd', 'reference', 'state'],
|
|
1039
|
+
}),
|
|
1040
|
+
'purchase.agreement.form': form(PurchaseAgreement, (k) => ({
|
|
1041
|
+
header: {
|
|
1042
|
+
statusbar: 'state',
|
|
1043
|
+
buttons: [
|
|
1044
|
+
k.button('confirm', { primary: true, label: 'Confirm' }),
|
|
1045
|
+
k.button('close', { label: 'Close' }),
|
|
1046
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1047
|
+
k.button('cancel', { label: 'Cancel', confirm: 'Cancel this agreement?' }),
|
|
1048
|
+
],
|
|
1049
|
+
},
|
|
1050
|
+
sheet: [
|
|
1051
|
+
k.stats('related', [
|
|
1052
|
+
{
|
|
1053
|
+
id: 'agreement_orders',
|
|
1054
|
+
label: 'Orders',
|
|
1055
|
+
model: PurchaseOrder,
|
|
1056
|
+
where: { agreement: { $record: 'id' } },
|
|
1057
|
+
action: 'purchase.action_orders',
|
|
1058
|
+
},
|
|
1059
|
+
]),
|
|
1060
|
+
k.group('main', ['name', 'vendor', 'buyer', 'kind', 'reference', 'currency']),
|
|
1061
|
+
k.group('validity', ['dateStart', 'dateEnd'], {
|
|
1062
|
+
label: 'Validity',
|
|
1063
|
+
description: 'Orders that name the agreement take its prices and may not go beyond its quantities or dates.',
|
|
1064
|
+
}),
|
|
1065
|
+
k.lines('lines', [
|
|
1066
|
+
{ field: 'product', id: 'agreement_product' },
|
|
1067
|
+
{ field: 'name', id: 'agreement_name' },
|
|
1068
|
+
{ field: 'quantity', id: 'agreement_quantity' },
|
|
1069
|
+
{ field: 'qtyOrdered', id: 'agreement_ordered' },
|
|
1070
|
+
{ field: 'uom', id: 'agreement_uom' },
|
|
1071
|
+
{ field: 'priceUnit', id: 'agreement_price' },
|
|
1072
|
+
]),
|
|
1073
|
+
k.group('terms', ['note'], { columns: 1 }),
|
|
1074
|
+
],
|
|
1075
|
+
chatter: true,
|
|
1076
|
+
})),
|
|
1077
|
+
'purchase.work.acceptance.list': list(PurchaseWorkAcceptance, {
|
|
1078
|
+
columns: [
|
|
1079
|
+
'name',
|
|
1080
|
+
'order',
|
|
1081
|
+
'vendor',
|
|
1082
|
+
'responsible',
|
|
1083
|
+
'dueDate',
|
|
1084
|
+
'acceptedOn',
|
|
1085
|
+
'amountTotal',
|
|
1086
|
+
'state',
|
|
1087
|
+
],
|
|
1088
|
+
}),
|
|
1089
|
+
'purchase.work.acceptance.form': form(PurchaseWorkAcceptance, (k) => ({
|
|
1090
|
+
header: {
|
|
1091
|
+
statusbar: 'state',
|
|
1092
|
+
buttons: [
|
|
1093
|
+
k.button('fill', { label: 'Fill from the order' }),
|
|
1094
|
+
k.button('accept', { primary: true, label: 'Accept' }),
|
|
1095
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1096
|
+
k.button('cancel', { label: 'Cancel', confirm: 'Cancel this acceptance?' }),
|
|
1097
|
+
],
|
|
1098
|
+
},
|
|
1099
|
+
sheet: [
|
|
1100
|
+
k.group('main', ['name', 'order', 'vendor', 'responsible', 'invoiceReference'], {
|
|
1101
|
+
description: 'Fill from the order: its service lines with what is left to accept.',
|
|
1102
|
+
}),
|
|
1103
|
+
k.group('when', ['dueDate', 'acceptedOn', 'currency']),
|
|
1104
|
+
k.lines('lines', [
|
|
1105
|
+
{ field: 'product', id: 'wa_product' },
|
|
1106
|
+
{ field: 'name', id: 'wa_name' },
|
|
1107
|
+
{ field: 'quantity', id: 'wa_quantity' },
|
|
1108
|
+
{ field: 'uom', id: 'wa_uom' },
|
|
1109
|
+
{ field: 'priceUnit', id: 'wa_price' },
|
|
1110
|
+
{ field: 'subtotal', id: 'wa_subtotal' },
|
|
1111
|
+
]),
|
|
1112
|
+
k.group('totals', ['amountTotal'], { label: 'Total' }),
|
|
1113
|
+
k.group('terms', ['note'], { columns: 1 }),
|
|
1114
|
+
],
|
|
1115
|
+
chatter: true,
|
|
1116
|
+
})),
|
|
1117
|
+
'purchase.vendor.request.list': list(PurchaseVendorRequest, {
|
|
1118
|
+
columns: ['name', 'kind', 'city', 'proprietorName', 'requester', 'date', 'partner', 'state'],
|
|
1119
|
+
}),
|
|
1120
|
+
'purchase.vendor.request.form': form(PurchaseVendorRequest, (k) => ({
|
|
1121
|
+
header: {
|
|
1122
|
+
statusbar: 'state',
|
|
1123
|
+
buttons: [
|
|
1124
|
+
k.button('submit', { primary: true, label: 'Submit for approval' }),
|
|
1125
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1126
|
+
],
|
|
1127
|
+
},
|
|
1128
|
+
sheet: [
|
|
1129
|
+
k.group('main', ['name', 'kind', 'requester', 'date', 'partner']),
|
|
1130
|
+
k.group('details', ['street', 'street2', 'city', 'zip', 'country', 'nid', 'tradeLicense'], {
|
|
1131
|
+
label: 'Details',
|
|
1132
|
+
}),
|
|
1133
|
+
k.group('proprietor', [
|
|
1134
|
+
'proprietorName',
|
|
1135
|
+
{ field: 'proprietorMobile', widget: 'phone' },
|
|
1136
|
+
{ field: 'email', widget: 'email' },
|
|
1137
|
+
{ field: 'phone', widget: 'phone' },
|
|
1138
|
+
], {
|
|
1139
|
+
label: 'Proprietor information',
|
|
1140
|
+
}),
|
|
1141
|
+
k.component('approvals', 'approvals.Panel'),
|
|
1142
|
+
k.group('after', ['rejectReason', 'note'], { label: 'Decision', columns: 1 }),
|
|
1143
|
+
],
|
|
1144
|
+
chatter: true,
|
|
1145
|
+
})),
|
|
1146
|
+
'purchase.request.list': list(PurchaseRequest, {
|
|
1147
|
+
columns: [
|
|
1148
|
+
'name',
|
|
1149
|
+
'requester',
|
|
1150
|
+
'date',
|
|
1151
|
+
'dateRequired',
|
|
1152
|
+
{ field: 'priority', widget: 'priority' },
|
|
1153
|
+
'amountEstimate',
|
|
1154
|
+
'state',
|
|
1155
|
+
],
|
|
1156
|
+
decorations: { danger: { priority: 'critical' }, warning: { priority: 'urgent' } },
|
|
1157
|
+
}),
|
|
1158
|
+
'purchase.request.kanban': kanban(PurchaseRequest, {
|
|
1159
|
+
groupBy: 'state',
|
|
1160
|
+
card: {
|
|
1161
|
+
title: 'name',
|
|
1162
|
+
subtitle: 'requester',
|
|
1163
|
+
footer: ['dateRequired', { field: 'priority', widget: 'priority' }],
|
|
1164
|
+
},
|
|
1165
|
+
}),
|
|
1166
|
+
'purchase.request.form': form(PurchaseRequest, (k) => ({
|
|
1167
|
+
header: {
|
|
1168
|
+
statusbar: 'state',
|
|
1169
|
+
buttons: [
|
|
1170
|
+
k.button('submit', { primary: true, label: 'Submit for approval' }),
|
|
1171
|
+
k.button('rfq', { primary: true, label: 'Make requests for quotation' }),
|
|
1172
|
+
k.button('tender', { label: 'Ask several vendors' }),
|
|
1173
|
+
k.button('close', { label: 'Close' }),
|
|
1174
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1175
|
+
k.button('cancel', { label: 'Cancel', confirm: 'Cancel this request?' }),
|
|
1176
|
+
],
|
|
1177
|
+
},
|
|
1178
|
+
sheet: [
|
|
1179
|
+
k.stats('related', [
|
|
1180
|
+
{
|
|
1181
|
+
id: 'request_orders',
|
|
1182
|
+
label: 'Requests for quotation and orders',
|
|
1183
|
+
model: PurchaseOrder,
|
|
1184
|
+
where: { origin: { $record: 'name' } },
|
|
1185
|
+
action: 'purchase.action_orders',
|
|
1186
|
+
},
|
|
1187
|
+
]),
|
|
1188
|
+
k.group('main', ['name', 'requester', 'date', 'purpose']),
|
|
1189
|
+
k.group('when', [
|
|
1190
|
+
'dateRequired',
|
|
1191
|
+
{ field: 'priority', widget: 'priority' },
|
|
1192
|
+
'vendor',
|
|
1193
|
+
'amountEstimate',
|
|
1194
|
+
]),
|
|
1195
|
+
k.component('approvals', 'approvals.Panel'),
|
|
1196
|
+
k.lines('lines', [
|
|
1197
|
+
'product',
|
|
1198
|
+
{ field: 'name', id: 'line_name' },
|
|
1199
|
+
'uom',
|
|
1200
|
+
'quantity',
|
|
1201
|
+
'qtyApproved',
|
|
1202
|
+
'qtyOnRfq',
|
|
1203
|
+
'qtyOrdered',
|
|
1204
|
+
'qtyRemaining',
|
|
1205
|
+
{ field: 'buyers', id: 'line_buyers', widget: 'tags' },
|
|
1206
|
+
{ field: 'status', id: 'line_status', widget: 'badge' },
|
|
1207
|
+
]),
|
|
1208
|
+
k.group('after', ['rejectReason'], { label: 'Decision' }),
|
|
1209
|
+
],
|
|
1210
|
+
chatter: true,
|
|
1211
|
+
})),
|
|
1212
|
+
'purchase.tender.list': list(PurchaseTender, {
|
|
1213
|
+
columns: ['name', 'topic', 'buyer', 'date', 'deadline', 'sourcing', 'responseCount', 'state'],
|
|
1214
|
+
}),
|
|
1215
|
+
'purchase.tender.kanban': kanban(PurchaseTender, {
|
|
1216
|
+
groupBy: 'state',
|
|
1217
|
+
card: { title: 'name', subtitle: 'topic', footer: ['deadline', 'responseCount'] },
|
|
1218
|
+
}),
|
|
1219
|
+
'purchase.tender.form': form(PurchaseTender, (k) => ({
|
|
1220
|
+
header: {
|
|
1221
|
+
statusbar: 'state',
|
|
1222
|
+
buttons: [
|
|
1223
|
+
k.button('send', { primary: true, label: 'Send to the vendors' }),
|
|
1224
|
+
k.button('close', { label: 'Close the responses' }),
|
|
1225
|
+
k.button('compare', { label: 'Draw up the comparison' }),
|
|
1226
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1227
|
+
k.button('cancel', { label: 'Cancel', confirm: 'Cancel this RFQ?' }),
|
|
1228
|
+
],
|
|
1229
|
+
},
|
|
1230
|
+
sheet: [
|
|
1231
|
+
k.group('main', ['name', 'topic', 'buyer', 'request', 'sourcing', 'technical']),
|
|
1232
|
+
k.group('terms', ['date', 'deadline', 'dateDelivery', 'currency', 'paymentTerms'], {
|
|
1233
|
+
label: 'Terms',
|
|
1234
|
+
}),
|
|
1235
|
+
k.group('who', [{ field: 'vendors', widget: 'tags' }], {
|
|
1236
|
+
label: 'Vendors',
|
|
1237
|
+
description: 'Each vendor gets a response of their own and a quote link by email; a buyer may also type their quotation.',
|
|
1238
|
+
}),
|
|
1239
|
+
k.lines('lines', [
|
|
1240
|
+
'product',
|
|
1241
|
+
{ field: 'name', id: 'line_name' },
|
|
1242
|
+
'uom',
|
|
1243
|
+
'quantity',
|
|
1244
|
+
{ field: 'requestLine', id: 'line_request' },
|
|
1245
|
+
]),
|
|
1246
|
+
k.lines('responses', [
|
|
1247
|
+
{ field: 'name', id: 'response_name' },
|
|
1248
|
+
{ field: 'vendor', id: 'response_vendor' },
|
|
1249
|
+
{ field: 'amountTotal', id: 'response_total' },
|
|
1250
|
+
{ field: 'dateDelivery', id: 'response_delivery' },
|
|
1251
|
+
{ field: 'state', id: 'response_state' },
|
|
1252
|
+
]),
|
|
1253
|
+
k.group('about', ['note'], { columns: 1 }),
|
|
1254
|
+
],
|
|
1255
|
+
chatter: true,
|
|
1256
|
+
})),
|
|
1257
|
+
'purchase.comparison.list': list(PurchaseComparison, {
|
|
1258
|
+
columns: ['name', 'tender', 'date', 'expiryDate', 'multiVendor', 'amountTotal', 'state'],
|
|
1259
|
+
}),
|
|
1260
|
+
'purchase.comparison.kanban': kanban(PurchaseComparison, {
|
|
1261
|
+
groupBy: 'state',
|
|
1262
|
+
card: { title: 'name', subtitle: 'tender', footer: ['amountTotal'] },
|
|
1263
|
+
}),
|
|
1264
|
+
'purchase.comparison.form': form(PurchaseComparison, (k) => ({
|
|
1265
|
+
header: {
|
|
1266
|
+
statusbar: 'state',
|
|
1267
|
+
buttons: [
|
|
1268
|
+
k.button('fill', { label: 'Fill from the RFQ' }),
|
|
1269
|
+
k.button('submit', { primary: true, label: 'Submit for approval' }),
|
|
1270
|
+
k.button('confirm', { primary: true, label: 'Confirm: make the orders' }),
|
|
1271
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1272
|
+
k.button('cancel', { label: 'Cancel', confirm: 'Cancel this statement?' }),
|
|
1273
|
+
],
|
|
1274
|
+
},
|
|
1275
|
+
sheet: [
|
|
1276
|
+
k.group('main', ['name', 'tender', 'date', 'expiryDate', 'dateDelivery', 'multiVendor'], {
|
|
1277
|
+
description: 'Fill from the RFQ: every line against every vendor who quoted. Negotiate in two rounds, set the final price, select the lines to award.',
|
|
1278
|
+
}),
|
|
1279
|
+
k.component('approvals', 'approvals.Panel'),
|
|
1280
|
+
k.lines('lines', [
|
|
1281
|
+
{ field: 'tenderLine', id: 'cs_line' },
|
|
1282
|
+
{ field: 'response', id: 'cs_response' },
|
|
1283
|
+
{ field: 'csQty', id: 'cs_qty' },
|
|
1284
|
+
{ field: 'quote', id: 'cs_quote' },
|
|
1285
|
+
{ field: 'nego1', id: 'cs_nego1' },
|
|
1286
|
+
{ field: 'nego2', id: 'cs_nego2' },
|
|
1287
|
+
{ field: 'finalPrice', id: 'cs_final' },
|
|
1288
|
+
{ field: 'total', id: 'cs_total' },
|
|
1289
|
+
{ field: 'lowest', id: 'cs_lowest' },
|
|
1290
|
+
{ field: 'selected', id: 'cs_selected' },
|
|
1291
|
+
]),
|
|
1292
|
+
k.group('totals', ['amountTotal'], { label: 'Awarded' }),
|
|
1293
|
+
k.group('about', ['note'], { columns: 1 }),
|
|
1294
|
+
],
|
|
1295
|
+
chatter: true,
|
|
1296
|
+
})),
|
|
1297
|
+
'purchase.technical.comparison.list': list(PurchaseTechnicalComparison, {
|
|
1298
|
+
columns: ['name', 'tender', 'engineer', 'kind', 'date', 'state'],
|
|
1299
|
+
}),
|
|
1300
|
+
'purchase.technical.comparison.form': form(PurchaseTechnicalComparison, (k) => ({
|
|
1301
|
+
header: {
|
|
1302
|
+
statusbar: 'state',
|
|
1303
|
+
buttons: [
|
|
1304
|
+
k.button('fill', { label: 'Fill from the RFQ' }),
|
|
1305
|
+
k.button('submit', { primary: true, label: 'Submit' }),
|
|
1306
|
+
k.button('approve', { primary: true, label: 'Approve' }),
|
|
1307
|
+
k.button('confirm', { primary: true, label: 'Confirm' }),
|
|
1308
|
+
k.button('redraft', { label: 'Set to draft' }),
|
|
1309
|
+
k.button('cancel', { label: 'Cancel', confirm: 'Cancel this comparison?' }),
|
|
1310
|
+
],
|
|
1311
|
+
},
|
|
1312
|
+
sheet: [
|
|
1313
|
+
k.group('main', ['name', 'tender', 'engineer', 'kind', 'date'], {
|
|
1314
|
+
description: 'Fill from the RFQ: every vendor who quoted; score each out of 100.',
|
|
1315
|
+
}),
|
|
1316
|
+
k.lines('lines', [
|
|
1317
|
+
{ field: 'response', id: 'tcs_response' },
|
|
1318
|
+
{ field: 'score', id: 'tcs_score' },
|
|
1319
|
+
{ field: 'meetsSpecifications', id: 'tcs_meets' },
|
|
1320
|
+
{ field: 'note', id: 'tcs_note' },
|
|
1321
|
+
]),
|
|
1322
|
+
k.group('about', ['remarks'], { columns: 1 }),
|
|
1323
|
+
],
|
|
1324
|
+
chatter: true,
|
|
1325
|
+
})),
|
|
1326
|
+
'purchase.tender.response.list': list(PurchaseTenderResponse, {
|
|
1327
|
+
columns: ['name', 'tender', 'vendor', 'responseDate', 'amountTotal', 'dateDelivery', 'state'],
|
|
1328
|
+
}),
|
|
1329
|
+
'purchase.tender.response.form': form(PurchaseTenderResponse, (k) => ({
|
|
1330
|
+
header: {
|
|
1331
|
+
statusbar: 'state',
|
|
1332
|
+
buttons: [
|
|
1333
|
+
k.button('submit', { primary: true, label: 'Submit the quotation' }),
|
|
1334
|
+
k.button('unanswered', { label: 'Did not respond' }),
|
|
1335
|
+
k.button('reject', { label: 'Reject', confirm: 'Reject this quotation?' }),
|
|
1336
|
+
k.button('reopen', { label: 'Reopen' }),
|
|
1337
|
+
],
|
|
1338
|
+
},
|
|
1339
|
+
sheet: [
|
|
1340
|
+
k.group('main', ['name', 'tender', 'vendor', 'responseDate', 'technicalRank']),
|
|
1341
|
+
k.group('terms', ['dateDelivery', 'paymentTerms', 'advancePercent', 'tokenExpiresAt'], {
|
|
1342
|
+
label: 'Terms',
|
|
1343
|
+
description: 'What the vendor offers; the quote link is valid until the date shown (a new one is made on request).',
|
|
1344
|
+
}),
|
|
1345
|
+
k.lines('lines', [
|
|
1346
|
+
{ field: 'product', id: 'quote_product' },
|
|
1347
|
+
{ field: 'quantity', id: 'quote_quantity' },
|
|
1348
|
+
{ field: 'priceUnit', id: 'quote_price' },
|
|
1349
|
+
{ field: 'subtotal', id: 'quote_subtotal' },
|
|
1350
|
+
{ field: 'note', id: 'quote_note' },
|
|
1351
|
+
]),
|
|
1352
|
+
k.group('totals', ['amountTotal'], { label: 'Total' }),
|
|
1353
|
+
k.group('remarks', ['remark'], { columns: 1 }),
|
|
1354
|
+
],
|
|
1355
|
+
chatter: true,
|
|
1356
|
+
})),
|
|
1357
|
+
// The line tracker (RFC 0032 §3.4): every request line through the chain.
|
|
1358
|
+
'purchase.request.line.list': list(PurchaseRequestLine, {
|
|
1359
|
+
columns: [
|
|
1360
|
+
'request',
|
|
1361
|
+
'product',
|
|
1362
|
+
'uom',
|
|
1363
|
+
'quantity',
|
|
1364
|
+
'qtyApproved',
|
|
1365
|
+
'qtyOnRfq',
|
|
1366
|
+
'qtyOrdered',
|
|
1367
|
+
'qtyRemaining',
|
|
1368
|
+
'dateRequired',
|
|
1369
|
+
{ field: 'buyers', widget: 'tags' },
|
|
1370
|
+
{ field: 'status', widget: 'badge' },
|
|
1371
|
+
],
|
|
1372
|
+
inlineEdit: ['buyers'],
|
|
1373
|
+
}),
|
|
1374
|
+
'purchase.request.line.pivot': pivot(PurchaseRequestLine, {
|
|
1375
|
+
rows: ['product'],
|
|
1376
|
+
cols: ['status'],
|
|
1377
|
+
measures: [{ sum: 'qtyApproved' }, { sum: 'qtyOrdered' }],
|
|
1378
|
+
}),
|
|
263
1379
|
'purchase.order.list': list(PurchaseOrder, {
|
|
264
1380
|
columns: [
|
|
265
1381
|
'name',
|
|
@@ -291,8 +1407,24 @@ export const purchase = defineModule({
|
|
|
291
1407
|
},
|
|
292
1408
|
sheet: [
|
|
293
1409
|
// Bills and receipts: the bridges append their tiles (RFC 0022 §3.1).
|
|
294
|
-
k.stats('related', [
|
|
295
|
-
|
|
1410
|
+
k.stats('related', [
|
|
1411
|
+
{
|
|
1412
|
+
id: 'order_acceptances',
|
|
1413
|
+
label: 'Work acceptances',
|
|
1414
|
+
model: PurchaseWorkAcceptance,
|
|
1415
|
+
where: { order: { $record: 'id' } },
|
|
1416
|
+
action: 'purchase.action_work_acceptances',
|
|
1417
|
+
},
|
|
1418
|
+
]),
|
|
1419
|
+
k.group('vendor', [
|
|
1420
|
+
'partner',
|
|
1421
|
+
'partnerReference',
|
|
1422
|
+
'currency',
|
|
1423
|
+
'agreement',
|
|
1424
|
+
'poType',
|
|
1425
|
+
'sourcing',
|
|
1426
|
+
'advancePercent',
|
|
1427
|
+
]),
|
|
296
1428
|
k.group('dates', ['name', 'dateOrder', 'datePlanned', 'user', 'origin']),
|
|
297
1429
|
k.lines('lines', [
|
|
298
1430
|
'product',
|
|
@@ -300,6 +1432,8 @@ export const purchase = defineModule({
|
|
|
300
1432
|
'quantity',
|
|
301
1433
|
'uom',
|
|
302
1434
|
'priceUnit',
|
|
1435
|
+
{ field: 'vendorCode', id: 'line_vendor_code' },
|
|
1436
|
+
{ field: 'priceReason', id: 'line_price_reason' },
|
|
303
1437
|
'taxes',
|
|
304
1438
|
{ field: 'datePlanned', id: 'line_date_planned' },
|
|
305
1439
|
'subtotal',
|
|
@@ -311,6 +1445,33 @@ export const purchase = defineModule({
|
|
|
311
1445
|
readonlyWhen: { state: { in: ['done', 'cancel'] } },
|
|
312
1446
|
chatter: true,
|
|
313
1447
|
})),
|
|
1448
|
+
'product.vendor.price.list': list(ProductVendorPrice, {
|
|
1449
|
+
columns: [
|
|
1450
|
+
'vendor',
|
|
1451
|
+
'product',
|
|
1452
|
+
'category',
|
|
1453
|
+
'vendorCode',
|
|
1454
|
+
'minQuantity',
|
|
1455
|
+
'price',
|
|
1456
|
+
'currency',
|
|
1457
|
+
'leadDays',
|
|
1458
|
+
'preferred',
|
|
1459
|
+
'dateTo',
|
|
1460
|
+
],
|
|
1461
|
+
inlineEdit: ['minQuantity', 'price', 'leadDays', 'preferred', 'dateTo'],
|
|
1462
|
+
}),
|
|
1463
|
+
'product.vendor.price.form': form(ProductVendorPrice, (k) => ({
|
|
1464
|
+
header: { buttons: [] },
|
|
1465
|
+
sheet: [
|
|
1466
|
+
k.group('what', ['vendor', 'product', 'category', 'vendorCode', 'vendorName'], {
|
|
1467
|
+
description: 'Purchase lines take the price of the order’s vendor for their quantity; Replenishment picks the preferred vendor, else the cheapest that arrives in time.',
|
|
1468
|
+
}),
|
|
1469
|
+
k.group('pricing', ['minQuantity', 'price', 'currency', 'leadDays', 'preferred'], {
|
|
1470
|
+
label: 'Price',
|
|
1471
|
+
}),
|
|
1472
|
+
k.group('when', ['dateFrom', 'dateTo', 'company', 'sequence'], { label: 'Valid' }),
|
|
1473
|
+
],
|
|
1474
|
+
})),
|
|
314
1475
|
'purchase.order.calendar': calendar(PurchaseOrder, {
|
|
315
1476
|
dateStart: 'datePlanned',
|
|
316
1477
|
title: 'name',
|
|
@@ -319,6 +1480,121 @@ export const purchase = defineModule({
|
|
|
319
1480
|
}),
|
|
320
1481
|
},
|
|
321
1482
|
search: {
|
|
1483
|
+
'purchase.agreement': search(PurchaseAgreement, {
|
|
1484
|
+
fields: ['name', 'reference', 'vendor.name', 'lines.product.name'],
|
|
1485
|
+
filters: {
|
|
1486
|
+
open: { label: 'Confirmed', domain: { state: 'confirmed' }, group: 'state' },
|
|
1487
|
+
},
|
|
1488
|
+
groupBy: ['vendor', 'kind', 'state'],
|
|
1489
|
+
}),
|
|
1490
|
+
'purchase.work.acceptance': search(PurchaseWorkAcceptance, {
|
|
1491
|
+
fields: ['name', 'order.name', 'vendor.name', 'invoiceReference'],
|
|
1492
|
+
filters: {
|
|
1493
|
+
mine: { label: 'My requests', domain: { responsible: { $env: 'uid' } }, group: 'who' },
|
|
1494
|
+
draft: { label: 'To accept', domain: { state: 'draft' }, group: 'state' },
|
|
1495
|
+
},
|
|
1496
|
+
groupBy: ['vendor', 'order', 'state'],
|
|
1497
|
+
}),
|
|
1498
|
+
'purchase.vendor.request': search(PurchaseVendorRequest, {
|
|
1499
|
+
fields: ['name', 'city', 'proprietorName', 'tradeLicense'],
|
|
1500
|
+
filters: {
|
|
1501
|
+
mine: { label: 'My requests', domain: { requester: { $env: 'uid' } }, group: 'who' },
|
|
1502
|
+
waiting: { label: 'To approve', domain: { state: 'to_approve' }, group: 'state' },
|
|
1503
|
+
approved: { label: 'Approved', domain: { state: 'approved' }, group: 'state' },
|
|
1504
|
+
},
|
|
1505
|
+
groupBy: ['kind', 'state'],
|
|
1506
|
+
}),
|
|
1507
|
+
'purchase.request': search(PurchaseRequest, {
|
|
1508
|
+
fields: ['name', 'purpose', 'requester.name', 'lines.product.name'],
|
|
1509
|
+
filters: {
|
|
1510
|
+
mine: { label: 'Mine', domain: { requester: { $env: 'uid' } }, group: 'who' },
|
|
1511
|
+
waiting: { label: 'Waiting for approval', domain: { state: 'to_approve' }, group: 'state' },
|
|
1512
|
+
approved: { label: 'Approved', domain: { state: 'approved' }, group: 'state' },
|
|
1513
|
+
urgent: {
|
|
1514
|
+
label: 'Urgent',
|
|
1515
|
+
domain: { priority: { in: ['urgent', 'critical'] } },
|
|
1516
|
+
group: 'priority',
|
|
1517
|
+
},
|
|
1518
|
+
},
|
|
1519
|
+
groupBy: ['requester', 'state', 'dateRequired:month'],
|
|
1520
|
+
}),
|
|
1521
|
+
'purchase.tender': search(PurchaseTender, {
|
|
1522
|
+
fields: ['name', 'topic', 'vendors.name', 'lines.product.name'],
|
|
1523
|
+
filters: {
|
|
1524
|
+
mine: { label: 'Mine', domain: { buyer: { $env: 'uid' } }, group: 'who' },
|
|
1525
|
+
open: {
|
|
1526
|
+
label: 'Waiting for responses',
|
|
1527
|
+
domain: { state: 'sent' },
|
|
1528
|
+
group: 'state',
|
|
1529
|
+
},
|
|
1530
|
+
received: { label: 'Responses received', domain: { state: 'received' }, group: 'state' },
|
|
1531
|
+
import: { label: 'Import', domain: { sourcing: 'import' }, group: 'sourcing' },
|
|
1532
|
+
},
|
|
1533
|
+
groupBy: ['buyer', 'state', 'sourcing', 'deadline:month'],
|
|
1534
|
+
}),
|
|
1535
|
+
'purchase.comparison': search(PurchaseComparison, {
|
|
1536
|
+
fields: ['name', 'tender.name'],
|
|
1537
|
+
filters: {
|
|
1538
|
+
waiting: { label: 'Waiting for approval', domain: { state: 'submitted' }, group: 'state' },
|
|
1539
|
+
approved: { label: 'Approved', domain: { state: 'approved' }, group: 'state' },
|
|
1540
|
+
},
|
|
1541
|
+
groupBy: ['tender', 'state'],
|
|
1542
|
+
}),
|
|
1543
|
+
'purchase.technical.comparison': search(PurchaseTechnicalComparison, {
|
|
1544
|
+
fields: ['name', 'tender.name', 'engineer.name'],
|
|
1545
|
+
filters: {
|
|
1546
|
+
mine: { label: 'Mine', domain: { engineer: { $env: 'uid' } }, group: 'who' },
|
|
1547
|
+
open: {
|
|
1548
|
+
label: 'Not confirmed',
|
|
1549
|
+
domain: { state: { in: ['draft', 'submitted', 'approved'] } },
|
|
1550
|
+
group: 'state',
|
|
1551
|
+
},
|
|
1552
|
+
},
|
|
1553
|
+
groupBy: ['engineer', 'state'],
|
|
1554
|
+
}),
|
|
1555
|
+
'purchase.tender.response': search(PurchaseTenderResponse, {
|
|
1556
|
+
fields: ['name', 'tender.name', 'vendor.name'],
|
|
1557
|
+
filters: {
|
|
1558
|
+
submitted: { label: 'Submitted', domain: { state: 'submitted' }, group: 'state' },
|
|
1559
|
+
waiting: {
|
|
1560
|
+
label: 'Waiting for the vendor',
|
|
1561
|
+
domain: { state: { in: ['invited', 'quoted'] } },
|
|
1562
|
+
group: 'state',
|
|
1563
|
+
},
|
|
1564
|
+
},
|
|
1565
|
+
groupBy: ['tender', 'vendor', 'state'],
|
|
1566
|
+
}),
|
|
1567
|
+
'purchase.request.line': search(PurchaseRequestLine, {
|
|
1568
|
+
fields: ['product.name', 'request.name'],
|
|
1569
|
+
filters: {
|
|
1570
|
+
open: {
|
|
1571
|
+
label: 'Approved, to buy',
|
|
1572
|
+
domain: { status: { in: ['approved', 'rfq'] } },
|
|
1573
|
+
group: 'status',
|
|
1574
|
+
},
|
|
1575
|
+
assigned_me: {
|
|
1576
|
+
label: 'Assigned to me',
|
|
1577
|
+
domain: { buyers: { any: { id: { $env: 'uid' } } } },
|
|
1578
|
+
group: 'who',
|
|
1579
|
+
},
|
|
1580
|
+
unassigned: {
|
|
1581
|
+
label: 'Not assigned',
|
|
1582
|
+
domain: { buyers: { none: { id: { gt: 0 } } } },
|
|
1583
|
+
group: 'who',
|
|
1584
|
+
},
|
|
1585
|
+
rfq: { label: 'RFQ made', domain: { status: 'rfq' }, group: 'status' },
|
|
1586
|
+
ordered: { label: 'Ordered', domain: { status: 'ordered' }, group: 'status' },
|
|
1587
|
+
cancelled: { label: 'Cancelled', domain: { status: 'cancelled' }, group: 'status' },
|
|
1588
|
+
},
|
|
1589
|
+
groupBy: ['request', 'product', 'status'],
|
|
1590
|
+
}),
|
|
1591
|
+
'product.vendor.price': search(ProductVendorPrice, {
|
|
1592
|
+
fields: ['vendor.name', 'product.name', 'vendorCode'],
|
|
1593
|
+
filters: {
|
|
1594
|
+
preferred: { label: 'Preferred', domain: { preferred: true } },
|
|
1595
|
+
},
|
|
1596
|
+
groupBy: ['vendor', 'product', 'category'],
|
|
1597
|
+
}),
|
|
322
1598
|
'purchase.order': search(PurchaseOrder, {
|
|
323
1599
|
fields: ['name', 'partner.name', 'partnerReference', 'origin'],
|
|
324
1600
|
filters: {
|