shutro-erp 0.3.3 → 0.3.5
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_portal/.kosh/bindings.js +1 -1
- package/dist/account_portal/.kosh/schema.d.ts +181 -3
- package/dist/account_portal/module.d.ts +359 -6
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +181 -3
- package/dist/accounting/index.js +214 -2
- package/dist/accounting/module.d.ts +217 -5
- package/dist/accounting/module.js +23 -2
- package/dist/calendar/.kosh/bindings.d.ts +22 -0
- package/dist/calendar/.kosh/bindings.js +15 -0
- package/dist/calendar/.kosh/schema.d.ts +795 -0
- package/dist/calendar/demo.d.ts +6 -0
- package/dist/calendar/demo.js +24 -0
- package/dist/calendar/index.d.ts +3 -0
- package/dist/calendar/index.js +291 -0
- package/dist/calendar/module.d.ts +1705 -0
- package/dist/calendar/module.js +180 -0
- package/dist/cli/init.js +48 -0
- package/dist/cli/templates.d.ts +1 -1
- package/dist/cli/templates.js +137 -0
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +205 -3
- package/dist/contacts/demo.js +30 -1
- package/dist/contacts/index.d.ts +1 -1
- package/dist/contacts/index.js +155 -9
- package/dist/contacts/module.d.ts +338 -2
- package/dist/contacts/module.js +82 -5
- package/dist/crm/.kosh/bindings.d.ts +22 -0
- package/dist/crm/.kosh/bindings.js +15 -0
- package/dist/crm/.kosh/schema.d.ts +799 -0
- package/dist/crm/demo.d.ts +6 -0
- package/dist/crm/demo.js +45 -0
- package/dist/crm/index.d.ts +3 -0
- package/dist/crm/index.js +361 -0
- package/dist/crm/module.d.ts +1843 -0
- package/dist/crm/module.js +207 -0
- package/dist/event/.kosh/bindings.d.ts +22 -0
- package/dist/event/.kosh/bindings.js +15 -0
- package/dist/event/.kosh/schema.d.ts +843 -0
- package/dist/event/demo.d.ts +6 -0
- package/dist/event/demo.js +65 -0
- package/dist/event/index.d.ts +14 -0
- package/dist/event/index.js +333 -0
- package/dist/event/mails.d.ts +15 -0
- package/dist/event/mails.js +112 -0
- package/dist/event/module.d.ts +2800 -0
- package/dist/event/module.js +323 -0
- package/dist/event/web/CheckInBox.d.ts +9 -0
- package/dist/event/web/CheckInBox.js +87 -0
- package/dist/event/web/index.d.ts +11 -0
- package/dist/event/web/index.js +16 -0
- package/dist/event/web/messages.d.ts +2 -0
- package/dist/event/web/messages.js +23 -0
- package/dist/event_account/.kosh/bindings.d.ts +22 -0
- package/dist/event_account/.kosh/bindings.js +15 -0
- package/dist/event_account/.kosh/schema.d.ts +1639 -0
- package/dist/event_account/index.d.ts +3 -0
- package/dist/event_account/index.js +28 -0
- package/dist/event_account/module.d.ts +6968 -0
- package/dist/event_account/module.js +90 -0
- package/dist/hr/.kosh/bindings.d.ts +22 -0
- package/dist/hr/.kosh/bindings.js +15 -0
- package/dist/hr/.kosh/schema.d.ts +878 -0
- package/dist/hr/demo.d.ts +6 -0
- package/dist/hr/demo.js +60 -0
- package/dist/hr/index.d.ts +3 -0
- package/dist/hr/index.js +483 -0
- package/dist/hr/module.d.ts +2611 -0
- package/dist/hr/module.js +350 -0
- package/dist/integrations/index.js +12 -0
- package/dist/integrations/web/OAuthAppsPage.d.ts +9 -0
- package/dist/integrations/web/OAuthAppsPage.js +79 -0
- package/dist/integrations/web/index.d.ts +1 -0
- package/dist/integrations/web/index.js +3 -0
- package/dist/integrations/web/messages.js +58 -0
- package/dist/l10n_bd/.kosh/bindings.js +1 -1
- package/dist/l10n_bd/.kosh/schema.d.ts +181 -3
- package/dist/l10n_bd/module.d.ts +359 -6
- package/dist/l10n_in/.kosh/bindings.js +1 -1
- package/dist/l10n_in/.kosh/schema.d.ts +181 -3
- package/dist/l10n_in/module.d.ts +380 -7
- package/dist/maintenance/.kosh/bindings.d.ts +22 -0
- package/dist/maintenance/.kosh/bindings.js +15 -0
- package/dist/maintenance/.kosh/schema.d.ts +911 -0
- package/dist/maintenance/demo.d.ts +6 -0
- package/dist/maintenance/demo.js +60 -0
- package/dist/maintenance/index.d.ts +3 -0
- package/dist/maintenance/index.js +422 -0
- package/dist/maintenance/module.d.ts +3545 -0
- package/dist/maintenance/module.js +446 -0
- package/dist/maintenance_stock/.kosh/bindings.d.ts +22 -0
- package/dist/maintenance_stock/.kosh/bindings.js +15 -0
- package/dist/maintenance_stock/.kosh/schema.d.ts +1371 -0
- package/dist/maintenance_stock/index.d.ts +9 -0
- package/dist/maintenance_stock/index.js +52 -0
- package/dist/maintenance_stock/module.d.ts +6953 -0
- package/dist/maintenance_stock/module.js +192 -0
- package/dist/messaging/web/index.js +1 -1
- package/dist/modules-sdk/index.d.ts +1 -1
- package/dist/modules-sdk/manifest.d.ts +70 -0
- package/dist/modules-sdk/manifest.js +35 -1
- package/dist/mrp/.kosh/bindings.d.ts +22 -0
- package/dist/mrp/.kosh/bindings.js +15 -0
- package/dist/mrp/.kosh/schema.d.ts +1378 -0
- package/dist/mrp/demo.d.ts +7 -0
- package/dist/mrp/demo.js +42 -0
- package/dist/mrp/index.d.ts +3 -0
- package/dist/mrp/index.js +392 -0
- package/dist/mrp/module.d.ts +8608 -0
- package/dist/mrp/module.js +695 -0
- package/dist/mrp_account/.kosh/bindings.d.ts +22 -0
- package/dist/mrp_account/.kosh/bindings.js +15 -0
- package/dist/mrp_account/.kosh/schema.d.ts +2106 -0
- package/dist/mrp_account/index.d.ts +3 -0
- package/dist/mrp_account/index.js +22 -0
- package/dist/mrp_account/module.d.ts +20840 -0
- package/dist/mrp_account/module.js +123 -0
- package/dist/notify/web/index.js +1 -1
- package/dist/payment/.kosh/bindings.js +1 -1
- package/dist/payment/.kosh/schema.d.ts +181 -3
- package/dist/payment/module.d.ts +359 -6
- package/dist/portal/.kosh/bindings.js +1 -1
- package/dist/portal/.kosh/schema.d.ts +205 -3
- package/dist/portal/module.d.ts +166 -2
- package/dist/pos/.kosh/bindings.d.ts +22 -0
- package/dist/pos/.kosh/bindings.js +15 -0
- package/dist/pos/.kosh/schema.d.ts +1690 -0
- package/dist/pos/accounting.d.ts +10 -0
- package/dist/pos/accounting.js +149 -0
- package/dist/pos/demo.d.ts +6 -0
- package/dist/pos/demo.js +90 -0
- package/dist/pos/index.d.ts +9 -0
- package/dist/pos/index.js +349 -0
- package/dist/pos/module.d.ts +9636 -0
- package/dist/pos/module.js +423 -0
- package/dist/pos/routes.d.ts +39 -0
- package/dist/pos/routes.js +368 -0
- package/dist/pos/web/Register.d.ts +9 -0
- package/dist/pos/web/Register.js +252 -0
- package/dist/pos/web/index.d.ts +11 -0
- package/dist/pos/web/index.js +16 -0
- package/dist/pos/web/messages.d.ts +2 -0
- package/dist/pos/web/messages.js +87 -0
- package/dist/pos_stock/.kosh/bindings.d.ts +22 -0
- package/dist/pos_stock/.kosh/bindings.js +15 -0
- package/dist/pos_stock/.kosh/schema.d.ts +2015 -0
- package/dist/pos_stock/index.d.ts +9 -0
- package/dist/pos_stock/index.js +35 -0
- package/dist/pos_stock/module.d.ts +11935 -0
- package/dist/pos_stock/module.js +115 -0
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +178 -1
- package/dist/product/index.js +81 -4
- package/dist/product/module.d.ts +43 -1
- package/dist/product/module.js +9 -2
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +181 -3
- package/dist/project/index.js +147 -7
- package/dist/project/module.d.ts +210 -2
- package/dist/project/module.js +52 -5
- package/dist/project_portal/.kosh/bindings.js +1 -1
- package/dist/project_portal/.kosh/schema.d.ts +181 -3
- package/dist/project_portal/module.d.ts +353 -4
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +181 -3
- package/dist/purchase/index.js +163 -3
- package/dist/purchase/module.d.ts +215 -3
- package/dist/purchase/module.js +21 -3
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +182 -3
- package/dist/purchase_account/index.js +26 -1
- package/dist/purchase_account/module.d.ts +393 -7
- package/dist/purchase_portal/.kosh/bindings.js +1 -1
- package/dist/purchase_portal/.kosh/schema.d.ts +181 -3
- package/dist/purchase_portal/module.d.ts +366 -5
- package/dist/purchase_stock/.kosh/bindings.d.ts +22 -0
- package/dist/purchase_stock/.kosh/bindings.js +15 -0
- package/dist/purchase_stock/.kosh/schema.d.ts +1310 -0
- package/dist/purchase_stock/index.d.ts +7 -0
- package/dist/purchase_stock/index.js +91 -0
- package/dist/purchase_stock/module.d.ts +6763 -0
- package/dist/purchase_stock/module.js +144 -0
- package/dist/purchase_stock_account/.kosh/bindings.d.ts +22 -0
- package/dist/purchase_stock_account/.kosh/bindings.js +15 -0
- package/dist/purchase_stock_account/.kosh/schema.d.ts +1959 -0
- package/dist/purchase_stock_account/index.d.ts +3 -0
- package/dist/purchase_stock_account/index.js +24 -0
- package/dist/purchase_stock_account/module.d.ts +35366 -0
- package/dist/purchase_stock_account/module.js +162 -0
- package/dist/recruitment/.kosh/bindings.d.ts +22 -0
- package/dist/recruitment/.kosh/bindings.js +15 -0
- package/dist/recruitment/.kosh/schema.d.ts +990 -0
- package/dist/recruitment/demo.d.ts +6 -0
- package/dist/recruitment/demo.js +45 -0
- package/dist/recruitment/index.d.ts +3 -0
- package/dist/recruitment/index.js +385 -0
- package/dist/recruitment/module.d.ts +3247 -0
- package/dist/recruitment/module.js +193 -0
- package/dist/recruitment/web/HireButton.d.ts +9 -0
- package/dist/recruitment/web/HireButton.js +32 -0
- package/dist/recruitment/web/index.d.ts +11 -0
- package/dist/recruitment/web/index.js +16 -0
- package/dist/recruitment/web/messages.d.ts +2 -0
- package/dist/recruitment/web/messages.js +19 -0
- package/dist/reporting/documents.d.ts +5 -0
- package/dist/reporting/documents.js +28 -1
- package/dist/reporting/index.d.ts +1 -1
- package/dist/reporting/index.js +4 -2
- package/dist/reporting/models.js +9 -0
- package/dist/reporting/overviews.d.ts +16 -0
- package/dist/reporting/overviews.js +56 -0
- package/dist/reporting/routes-documents.js +1 -1
- package/dist/reporting/routes.js +138 -80
- package/dist/reporting/web/DashboardView.d.ts +11 -0
- package/dist/reporting/web/DashboardView.js +2 -2
- package/dist/reporting/web/DesignerView.js +5 -0
- package/dist/reporting/web/Overview.d.ts +9 -0
- package/dist/reporting/web/Overview.js +53 -0
- package/dist/reporting/web/index.d.ts +1 -0
- package/dist/reporting/web/index.js +4 -1
- package/dist/reporting/web/messages.js +9 -0
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +186 -3
- package/dist/sale_account/index.js +22 -1
- package/dist/sale_account/module.d.ts +461 -7
- package/dist/sale_portal/.kosh/bindings.js +1 -1
- package/dist/sale_portal/.kosh/schema.d.ts +185 -3
- package/dist/sale_portal/module.d.ts +434 -5
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +187 -3
- package/dist/sale_project/module.d.ts +476 -6
- package/dist/sale_stock/.kosh/bindings.d.ts +22 -0
- package/dist/sale_stock/.kosh/bindings.js +15 -0
- package/dist/sale_stock/.kosh/schema.d.ts +1228 -0
- package/dist/sale_stock/index.d.ts +7 -0
- package/dist/sale_stock/index.js +84 -0
- package/dist/sale_stock/module.d.ts +6791 -0
- package/dist/sale_stock/module.js +146 -0
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +185 -3
- package/dist/sales/index.js +191 -4
- package/dist/sales/module.d.ts +355 -3
- package/dist/sales/module.js +78 -3
- package/dist/server/api/metadata.d.ts +5 -0
- package/dist/server/api/metadata.js +5 -0
- package/dist/server/api/rest.js +64 -1
- package/dist/server/api/views.js +1 -0
- package/dist/server/app-settings.d.ts +7 -0
- package/dist/server/app-settings.js +10 -0
- package/dist/server/auth/base.js +85 -0
- package/dist/server/auth/oauth.d.ts +21 -0
- package/dist/server/auth/oauth.js +579 -0
- package/dist/server/auth/service.d.ts +4 -0
- package/dist/server/auth/service.js +17 -0
- package/dist/server/identity.d.ts +2 -0
- package/dist/server/images.d.ts +12 -0
- package/dist/server/images.js +139 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +2 -0
- package/dist/server/server.d.ts +4 -0
- package/dist/server/server.js +9 -1
- package/dist/settings/app-settings.d.ts +2 -0
- package/dist/settings/app-settings.js +518 -0
- package/dist/settings/company.js +3 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +15 -0
- package/dist/settings/people.js +32 -6
- package/dist/settings/web/AppSettingsPage.d.ts +11 -0
- package/dist/settings/web/AppSettingsPage.js +210 -0
- package/dist/settings/web/CompaniesPage.js +2 -2
- package/dist/settings/web/CompanyPage.js +13 -2
- package/dist/settings/web/ConnectedAppsPage.d.ts +7 -0
- package/dist/settings/web/ConnectedAppsPage.js +33 -0
- package/dist/settings/web/OverviewPage.js +28 -4
- package/dist/settings/web/PeoplePage.js +23 -18
- package/dist/settings/web/ProfilePage.js +9 -7
- package/dist/settings/web/index.d.ts +2 -0
- package/dist/settings/web/index.js +8 -0
- package/dist/settings/web/messages.js +146 -2
- package/dist/stock/.kosh/bindings.d.ts +22 -0
- package/dist/stock/.kosh/bindings.js +15 -0
- package/dist/stock/.kosh/schema.d.ts +1147 -0
- package/dist/stock/demo.d.ts +7 -0
- package/dist/stock/demo.js +55 -0
- package/dist/stock/index.d.ts +3 -0
- package/dist/stock/index.js +674 -0
- package/dist/stock/module.d.ts +6330 -0
- package/dist/stock/module.js +1325 -0
- package/dist/stock/web/ScanBox.d.ts +8 -0
- package/dist/stock/web/ScanBox.js +90 -0
- package/dist/stock/web/index.d.ts +11 -0
- package/dist/stock/web/index.js +16 -0
- package/dist/stock/web/messages.d.ts +2 -0
- package/dist/stock/web/messages.js +25 -0
- package/dist/stock_account/.kosh/bindings.d.ts +22 -0
- package/dist/stock_account/.kosh/bindings.js +15 -0
- package/dist/stock_account/.kosh/schema.d.ts +1875 -0
- package/dist/stock_account/index.d.ts +3 -0
- package/dist/stock_account/index.js +130 -0
- package/dist/stock_account/module.d.ts +10655 -0
- package/dist/stock_account/module.js +339 -0
- package/dist/storage/attachments.d.ts +5 -0
- package/dist/storage/attachments.js +12 -1
- package/dist/storage/models.js +3 -0
- package/dist/storage/routes.js +13 -2
- package/dist/todo/.kosh/bindings.d.ts +22 -0
- package/dist/todo/.kosh/bindings.js +15 -0
- package/dist/todo/.kosh/schema.d.ts +732 -0
- package/dist/todo/demo.d.ts +6 -0
- package/dist/todo/demo.js +35 -0
- package/dist/todo/index.d.ts +3 -0
- package/dist/todo/index.js +187 -0
- package/dist/todo/module.d.ts +1180 -0
- package/dist/todo/module.js +130 -0
- package/dist/trade_finance/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance/.kosh/bindings.js +15 -0
- package/dist/trade_finance/.kosh/schema.d.ts +884 -0
- package/dist/trade_finance/demo.d.ts +6 -0
- package/dist/trade_finance/demo.js +63 -0
- package/dist/trade_finance/index.d.ts +3 -0
- package/dist/trade_finance/index.js +413 -0
- package/dist/trade_finance/module.d.ts +3779 -0
- package/dist/trade_finance/module.js +505 -0
- package/dist/trade_finance_account/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance_account/.kosh/bindings.js +15 -0
- package/dist/trade_finance_account/.kosh/schema.d.ts +1711 -0
- package/dist/trade_finance_account/index.d.ts +3 -0
- package/dist/trade_finance_account/index.js +92 -0
- package/dist/trade_finance_account/module.d.ts +7928 -0
- package/dist/trade_finance_account/module.js +244 -0
- package/dist/trade_finance_purchase/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance_purchase/.kosh/bindings.js +15 -0
- package/dist/trade_finance_purchase/.kosh/schema.d.ts +1153 -0
- package/dist/trade_finance_purchase/index.d.ts +8 -0
- package/dist/trade_finance_purchase/index.js +50 -0
- package/dist/trade_finance_purchase/module.d.ts +4252 -0
- package/dist/trade_finance_purchase/module.js +44 -0
- package/dist/trade_finance_sale/.kosh/bindings.d.ts +22 -0
- package/dist/trade_finance_sale/.kosh/bindings.js +15 -0
- package/dist/trade_finance_sale/.kosh/schema.d.ts +1071 -0
- package/dist/trade_finance_sale/index.d.ts +8 -0
- package/dist/trade_finance_sale/index.js +50 -0
- package/dist/trade_finance_sale/module.d.ts +4280 -0
- package/dist/trade_finance_sale/module.js +44 -0
- package/dist/ui/api.d.ts +6 -1
- package/dist/ui/api.js +2 -1
- package/dist/ui/app.js +51 -17
- package/dist/ui/components/AppIcon.js +33 -1
- package/dist/ui/components/Avatar.d.ts +21 -0
- package/dist/ui/components/Avatar.js +71 -0
- package/dist/ui/components/primitives.d.ts +2 -0
- package/dist/ui/components/primitives.js +7 -1
- package/dist/ui/i18n/messages.d.ts +53 -0
- package/dist/ui/i18n/messages.js +98 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +2 -0
- package/dist/ui/offline/queue.d.ts +5 -1
- package/dist/ui/offline/queue.js +2 -0
- package/dist/ui/registry.d.ts +12 -1
- package/dist/ui/registry.js +10 -1
- package/dist/ui/search/ViewTabs.d.ts +14 -0
- package/dist/ui/search/ViewTabs.js +42 -0
- package/dist/ui/shell/Consent.d.ts +5 -0
- package/dist/ui/shell/Consent.js +35 -0
- package/dist/ui/shell/Home.js +136 -16
- package/dist/ui/shell/Sidebar.js +15 -22
- package/dist/ui/views/FormView.js +98 -17
- package/dist/ui/views/KanbanView.d.ts +2 -0
- package/dist/ui/views/KanbanView.js +32 -3
- package/dist/ui/views/ListView.js +155 -31
- package/dist/ui/views/StatsRow.d.ts +14 -0
- package/dist/ui/views/StatsRow.js +88 -0
- package/dist/ui/views/widgets.d.ts +2 -1
- package/dist/ui/views/widgets.js +194 -1
- package/dist/views/builders.d.ts +19 -2
- package/dist/views/builders.js +21 -1
- package/dist/views/condition.d.ts +6 -0
- package/dist/views/condition.js +20 -0
- package/dist/views/documents.d.ts +8 -0
- package/dist/views/extend.d.ts +2 -2
- package/dist/views/extend.js +11 -1
- package/dist/views/index.d.ts +2 -2
- package/dist/views/index.js +2 -2
- package/dist/views/types.d.ts +52 -5
- package/dist/views/validate.js +39 -1
- package/dist/website/.kosh/bindings.d.ts +22 -0
- package/dist/website/.kosh/bindings.js +15 -0
- package/dist/website/.kosh/schema.d.ts +881 -0
- package/dist/website/demo.d.ts +6 -0
- package/dist/website/demo.js +115 -0
- package/dist/website/index.d.ts +9 -0
- package/dist/website/index.js +250 -0
- package/dist/website/module.d.ts +2987 -0
- package/dist/website/module.js +281 -0
- package/dist/website/render.d.ts +45 -0
- package/dist/website/render.js +102 -0
- package/dist/website/routes.d.ts +12 -0
- package/dist/website/routes.js +246 -0
- package/dist/website/web/PagePreview.d.ts +7 -0
- package/dist/website/web/PagePreview.js +33 -0
- package/dist/website/web/index.d.ts +11 -0
- package/dist/website/web/index.js +16 -0
- package/dist/website/web/messages.d.ts +2 -0
- package/dist/website/web/messages.js +15 -0
- package/dist/website_crm/.kosh/bindings.d.ts +22 -0
- package/dist/website_crm/.kosh/bindings.js +15 -0
- package/dist/website_crm/.kosh/schema.d.ts +966 -0
- package/dist/website_crm/index.d.ts +3 -0
- package/dist/website_crm/index.js +39 -0
- package/dist/website_crm/module.d.ts +2955 -0
- package/dist/website_crm/module.js +44 -0
- package/package.json +118 -1
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 9b6a06f0df545695
|
|
2
|
+
// Schema view of module `mrp_account` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
|
+
import type { F } from '../../server/orm.js';
|
|
4
|
+
|
|
5
|
+
/** Model name → model type (RFC 0002 §7.7). */
|
|
6
|
+
export interface SchemaView {
|
|
7
|
+
readonly 'account.account': AccountAccount;
|
|
8
|
+
readonly 'account.fiscal.year': AccountFiscalYear;
|
|
9
|
+
readonly 'account.full.reconcile': AccountFullReconcile;
|
|
10
|
+
readonly 'account.journal': AccountJournal;
|
|
11
|
+
readonly 'account.move': AccountMove;
|
|
12
|
+
readonly 'account.move.line': AccountMoveLine;
|
|
13
|
+
readonly 'account.partial.reconcile': AccountPartialReconcile;
|
|
14
|
+
readonly 'account.payment': AccountPayment;
|
|
15
|
+
readonly 'account.payment.term': AccountPaymentTerm;
|
|
16
|
+
readonly 'account.payment.term.line': AccountPaymentTermLine;
|
|
17
|
+
readonly 'account.payment.withholding': AccountPaymentWithholding;
|
|
18
|
+
readonly 'account.tax': AccountTax;
|
|
19
|
+
readonly 'account.tax.component': AccountTaxComponent;
|
|
20
|
+
readonly 'account.withholding': AccountWithholding;
|
|
21
|
+
readonly 'approval.level': ApprovalLevel;
|
|
22
|
+
readonly 'approval.policy': ApprovalPolicy;
|
|
23
|
+
readonly 'approval.request': ApprovalRequest;
|
|
24
|
+
readonly 'audit.event': AuditEvent;
|
|
25
|
+
readonly 'auth.api_key': AuthApiKey;
|
|
26
|
+
readonly 'auth.credential': AuthCredential;
|
|
27
|
+
readonly 'auth.policy': AuthPolicy;
|
|
28
|
+
readonly 'auth.session': AuthSession;
|
|
29
|
+
readonly 'auth.user_grant': AuthUserGrant;
|
|
30
|
+
readonly 'auth.user_group': AuthUserGroup;
|
|
31
|
+
readonly 'kosh.image': KoshImage;
|
|
32
|
+
readonly 'kosh.saved_view': KoshSavedView;
|
|
33
|
+
readonly 'kosh.setting': KoshSetting;
|
|
34
|
+
readonly 'mail.activity': MailActivity;
|
|
35
|
+
readonly 'mail.activity.type': MailActivityType;
|
|
36
|
+
readonly 'mail.channel': MailChannel;
|
|
37
|
+
readonly 'mail.channel.member': MailChannelMember;
|
|
38
|
+
readonly 'mail.follower': MailFollower;
|
|
39
|
+
readonly 'mail.message': MailMessage;
|
|
40
|
+
readonly 'mail.message.reaction': MailMessageReaction;
|
|
41
|
+
readonly 'mrp.bom': MrpBom;
|
|
42
|
+
readonly 'mrp.bom.byproduct': MrpBomByproduct;
|
|
43
|
+
readonly 'mrp.bom.line': MrpBomLine;
|
|
44
|
+
readonly 'mrp.bom.operation': MrpBomOperation;
|
|
45
|
+
readonly 'mrp.production': MrpProduction;
|
|
46
|
+
readonly 'mrp.production.component': MrpProductionComponent;
|
|
47
|
+
readonly 'mrp.workcenter': MrpWorkcenter;
|
|
48
|
+
readonly 'mrp.workorder': MrpWorkorder;
|
|
49
|
+
readonly 'oauth.app': OauthApp;
|
|
50
|
+
readonly 'oauth.code': OauthCode;
|
|
51
|
+
readonly 'oauth.grant': OauthGrant;
|
|
52
|
+
readonly 'oauth.token': OauthToken;
|
|
53
|
+
readonly 'product.category': ProductCategory;
|
|
54
|
+
readonly 'product.product': ProductProduct;
|
|
55
|
+
readonly 'report.dashboard': ReportDashboard;
|
|
56
|
+
readonly 'report.output': ReportOutput;
|
|
57
|
+
readonly 'report.schedule': ReportSchedule;
|
|
58
|
+
readonly 'report.spreadsheet': ReportSpreadsheet;
|
|
59
|
+
readonly 'report.template': ReportTemplate;
|
|
60
|
+
readonly 'res.bank.account': ResBankAccount;
|
|
61
|
+
readonly 'res.company': ResCompany;
|
|
62
|
+
readonly 'res.currency': ResCurrency;
|
|
63
|
+
readonly 'res.currency.rate': ResCurrencyRate;
|
|
64
|
+
readonly 'res.partner': ResPartner;
|
|
65
|
+
readonly 'res.partner.tag': ResPartnerTag;
|
|
66
|
+
readonly 'res.users': ResUsers;
|
|
67
|
+
readonly 'stock.count': StockCount;
|
|
68
|
+
readonly 'stock.count.line': StockCountLine;
|
|
69
|
+
readonly 'stock.location': StockLocation;
|
|
70
|
+
readonly 'stock.lot': StockLot;
|
|
71
|
+
readonly 'stock.lot.line': StockLotLine;
|
|
72
|
+
readonly 'stock.move': StockMove;
|
|
73
|
+
readonly 'stock.picking': StockPicking;
|
|
74
|
+
readonly 'stock.quant': StockQuant;
|
|
75
|
+
readonly 'stock.reservation': StockReservation;
|
|
76
|
+
readonly 'stock.scrap': StockScrap;
|
|
77
|
+
readonly 'stock.valuation.layer': StockValuationLayer;
|
|
78
|
+
readonly 'stock.warehouse': StockWarehouse;
|
|
79
|
+
readonly 'storage.attachment': StorageAttachment;
|
|
80
|
+
readonly 'uom.uom': UomUom;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** `account.account` (owner: accounting). */
|
|
84
|
+
export interface AccountAccount {
|
|
85
|
+
readonly name: 'account.account';
|
|
86
|
+
readonly fields: {
|
|
87
|
+
readonly id: F.Id<'account.account'>;
|
|
88
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
89
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
90
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
91
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
92
|
+
readonly displayName: F.Char<{ readonly readonly: true; readonly compute: true }>;
|
|
93
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
94
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
95
|
+
readonly code: F.Char<{ readonly required: true }>;
|
|
96
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
97
|
+
readonly type: F.Selection<'asset_receivable' | 'asset_cash' | 'asset_current' | 'asset_prepayments' | 'asset_fixed' | 'asset_non_current' | 'liability_payable' | 'liability_current' | 'liability_non_current' | 'equity' | 'equity_unaffected' | 'income' | 'income_other' | 'expense' | 'expense_direct_cost' | 'expense_depreciation' | 'off_balance', { readonly required: true }>;
|
|
98
|
+
readonly reconcile: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
99
|
+
readonly currency: F.Many2one<'res.currency'>;
|
|
100
|
+
readonly note: F.Text;
|
|
101
|
+
};
|
|
102
|
+
readonly methods: AccountAccountMethods;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** Methods of `account.account`: declared ones and transitions. */
|
|
106
|
+
export interface AccountAccountMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.account'> {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** `account.fiscal.year` (owner: accounting). */
|
|
110
|
+
export interface AccountFiscalYear {
|
|
111
|
+
readonly name: 'account.fiscal.year';
|
|
112
|
+
readonly fields: {
|
|
113
|
+
readonly id: F.Id<'account.fiscal.year'>;
|
|
114
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
115
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
116
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
117
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
118
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
119
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
120
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
121
|
+
readonly dateFrom: F.DateOnly<{ readonly required: true }>;
|
|
122
|
+
readonly dateTo: F.DateOnly<{ readonly required: true }>;
|
|
123
|
+
readonly state: F.Selection<'open' | 'closed', { readonly required: true; readonly default: true }>;
|
|
124
|
+
readonly lockDate: F.DateOnly;
|
|
125
|
+
readonly closingMove: F.Many2one<'account.move'>;
|
|
126
|
+
readonly reopenReason: F.Char;
|
|
127
|
+
};
|
|
128
|
+
readonly methods: AccountFiscalYearMethods;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** Methods of `account.fiscal.year`: declared ones and transitions. */
|
|
132
|
+
export interface AccountFiscalYearMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.fiscal.year'> {
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** `account.full.reconcile` (owner: accounting). */
|
|
136
|
+
export interface AccountFullReconcile {
|
|
137
|
+
readonly name: 'account.full.reconcile';
|
|
138
|
+
readonly fields: {
|
|
139
|
+
readonly id: F.Id<'account.full.reconcile'>;
|
|
140
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
141
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
142
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
143
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
144
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
145
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
146
|
+
readonly lines: F.One2many<'account.move.line', { readonly required: true }>;
|
|
147
|
+
readonly partials: F.One2many<'account.partial.reconcile', { readonly required: true }>;
|
|
148
|
+
};
|
|
149
|
+
readonly methods: AccountFullReconcileMethods;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Methods of `account.full.reconcile`: declared ones and transitions. */
|
|
153
|
+
export interface AccountFullReconcileMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.full.reconcile'> {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** `account.journal` (owner: accounting). */
|
|
157
|
+
export interface AccountJournal {
|
|
158
|
+
readonly name: 'account.journal';
|
|
159
|
+
readonly fields: {
|
|
160
|
+
readonly id: F.Id<'account.journal'>;
|
|
161
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
162
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
163
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
164
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
165
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
166
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
167
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
168
|
+
readonly code: F.Char<{ readonly required: true }>;
|
|
169
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
170
|
+
readonly type: F.Selection<'sale' | 'purchase' | 'cash' | 'bank' | 'general', { readonly required: true; readonly default: true }>;
|
|
171
|
+
readonly defaultAccount: F.Many2one<'account.account'>;
|
|
172
|
+
};
|
|
173
|
+
readonly methods: AccountJournalMethods;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** Methods of `account.journal`: declared ones and transitions. */
|
|
177
|
+
export interface AccountJournalMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.journal'> {
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** `account.move` (owner: accounting). */
|
|
181
|
+
export interface AccountMove {
|
|
182
|
+
readonly name: 'account.move';
|
|
183
|
+
readonly fields: {
|
|
184
|
+
readonly id: F.Id<'account.move'>;
|
|
185
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
186
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
187
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
188
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
189
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
190
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
191
|
+
readonly name: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
192
|
+
readonly numberSale: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
193
|
+
readonly numberPurchase: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
194
|
+
readonly numberCash: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
195
|
+
readonly numberBank: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
196
|
+
readonly numberGeneral: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
197
|
+
readonly journal: F.Many2one<'account.journal', { readonly required: true }>;
|
|
198
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
199
|
+
readonly kind: F.Selection<'entry' | 'out_invoice' | 'out_refund' | 'in_invoice' | 'in_refund' | 'out_debit' | 'in_debit', { readonly required: true; readonly default: true }>;
|
|
200
|
+
readonly partner: F.Many2one<'res.partner'>;
|
|
201
|
+
readonly ref: F.Char;
|
|
202
|
+
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
203
|
+
readonly rate: F.Decimal;
|
|
204
|
+
readonly companyCurrency: F.Many2one<'res.currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
205
|
+
readonly narration: F.Text;
|
|
206
|
+
readonly lines: F.One2many<'account.move.line', { readonly required: true }>;
|
|
207
|
+
readonly invoiceLines: F.One2many<'account.move.line', { readonly required: true }>;
|
|
208
|
+
readonly amountDebit: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
209
|
+
readonly amountCredit: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
210
|
+
readonly dateDue: F.DateOnly;
|
|
211
|
+
readonly paymentDetails: F.Text<{ readonly readonly: true; readonly compute: true }>;
|
|
212
|
+
readonly paymentTerm: F.Many2one<'account.payment.term'>;
|
|
213
|
+
readonly invoiceOrigin: F.Char;
|
|
214
|
+
readonly amountUntaxed: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
215
|
+
readonly amountTax: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
216
|
+
readonly amountTotal: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
217
|
+
readonly amountResidual: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
218
|
+
readonly paymentState: F.Selection<'not_applicable' | 'not_paid' | 'partial' | 'paid', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
219
|
+
readonly payments: F.Many2many<'account.payment', { readonly required: true }>;
|
|
220
|
+
readonly state: F.State<'draft' | 'to_approve' | 'posted' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
221
|
+
readonly postedAt: F.Datetime;
|
|
222
|
+
readonly postedTx: F.Char;
|
|
223
|
+
readonly reversalOf: F.Many2one<'account.move'>;
|
|
224
|
+
readonly debitOf: F.Many2one<'account.move'>;
|
|
225
|
+
readonly placeOfSupply: F.Char;
|
|
226
|
+
readonly reversedBy: F.Many2one<'account.move'>;
|
|
227
|
+
};
|
|
228
|
+
readonly methods: AccountMoveMethods;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** Methods of `account.move`: declared ones and transitions. */
|
|
232
|
+
export interface AccountMoveMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.move'> {
|
|
233
|
+
readonly 'cancel': () => Promise<void>;
|
|
234
|
+
readonly 'post': () => Promise<void>;
|
|
235
|
+
readonly 'redraft': () => Promise<void>;
|
|
236
|
+
readonly 'reject': () => Promise<void>;
|
|
237
|
+
readonly 'submit': () => Promise<void>;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** `account.move.line` (owner: accounting). */
|
|
241
|
+
export interface AccountMoveLine {
|
|
242
|
+
readonly name: 'account.move.line';
|
|
243
|
+
readonly fields: {
|
|
244
|
+
readonly id: F.Id<'account.move.line'>;
|
|
245
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
246
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
247
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
248
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
249
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
250
|
+
readonly move: F.Many2one<'account.move', { readonly required: true }>;
|
|
251
|
+
readonly account: F.Many2one<'account.account'>;
|
|
252
|
+
readonly partner: F.Many2one<'res.partner'>;
|
|
253
|
+
readonly name: F.Char;
|
|
254
|
+
readonly date: F.DateOnly<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
255
|
+
readonly dateMaturity: F.DateOnly;
|
|
256
|
+
readonly companyCurrency: F.Many2one<'res.currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
257
|
+
readonly currency: F.Many2one<'res.currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
258
|
+
readonly debit: F.Monetary<'companyCurrency', { readonly required: true; readonly default: true }>;
|
|
259
|
+
readonly credit: F.Monetary<'companyCurrency', { readonly required: true; readonly default: true }>;
|
|
260
|
+
readonly amountCurrency: F.Monetary<'currency'>;
|
|
261
|
+
readonly lineKind: F.Selection<'entry' | 'product' | 'tax' | 'counterpart', { readonly required: true; readonly default: true }>;
|
|
262
|
+
readonly invoice: F.Many2one<'account.move', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
263
|
+
readonly product: F.Many2one<'product.product'>;
|
|
264
|
+
readonly quantity: F.Decimal<{ readonly default: true }>;
|
|
265
|
+
readonly priceUnit: F.Decimal<{ readonly default: true }>;
|
|
266
|
+
readonly discount: F.Decimal<{ readonly default: true }>;
|
|
267
|
+
readonly taxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
268
|
+
readonly tax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
269
|
+
readonly subtotal: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
270
|
+
readonly taxAmount: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
271
|
+
readonly taxLineOf: F.Many2one<'account.tax'>;
|
|
272
|
+
readonly taxComponent: F.Many2one<'account.tax.component'>;
|
|
273
|
+
readonly taxReverseCharge: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
274
|
+
readonly taxBase: F.Monetary<'currency'>;
|
|
275
|
+
readonly balance: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
276
|
+
readonly posted: F.Bool<{ readonly required: true; readonly readonly: true; readonly default: true; readonly compute: true; readonly store: true }>;
|
|
277
|
+
readonly accountType: F.Selection<'asset_receivable' | 'asset_cash' | 'asset_current' | 'asset_prepayments' | 'asset_fixed' | 'asset_non_current' | 'liability_payable' | 'liability_current' | 'liability_non_current' | 'equity' | 'equity_unaffected' | 'income' | 'income_other' | 'expense' | 'expense_direct_cost' | 'expense_depreciation' | 'off_balance', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
278
|
+
readonly taxReport: F.Many2one<'account.tax', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
279
|
+
readonly partialsAsDebit: F.One2many<'account.partial.reconcile', { readonly required: true }>;
|
|
280
|
+
readonly partialsAsCredit: F.One2many<'account.partial.reconcile', { readonly required: true }>;
|
|
281
|
+
readonly fullReconcile: F.Many2one<'account.full.reconcile'>;
|
|
282
|
+
readonly amountResidual: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
283
|
+
readonly amountResidualCurrency: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
284
|
+
readonly reconciled: F.Bool<{ readonly required: true; readonly readonly: true; readonly default: true; readonly compute: true; readonly store: true }>;
|
|
285
|
+
};
|
|
286
|
+
readonly methods: AccountMoveLineMethods;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** Methods of `account.move.line`: declared ones and transitions. */
|
|
290
|
+
export interface AccountMoveLineMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.move.line'> {
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** `account.partial.reconcile` (owner: accounting). */
|
|
294
|
+
export interface AccountPartialReconcile {
|
|
295
|
+
readonly name: 'account.partial.reconcile';
|
|
296
|
+
readonly fields: {
|
|
297
|
+
readonly id: F.Id<'account.partial.reconcile'>;
|
|
298
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
299
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
300
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
301
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
302
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
303
|
+
readonly debitLine: F.Many2one<'account.move.line', { readonly required: true }>;
|
|
304
|
+
readonly creditLine: F.Many2one<'account.move.line', { readonly required: true }>;
|
|
305
|
+
readonly amount: F.Decimal<{ readonly required: true }>;
|
|
306
|
+
readonly amountCurrency: F.Decimal;
|
|
307
|
+
readonly currency: F.Many2one<'res.currency'>;
|
|
308
|
+
readonly exchangeMove: F.Many2one<'account.move'>;
|
|
309
|
+
readonly fullReconcile: F.Many2one<'account.full.reconcile'>;
|
|
310
|
+
};
|
|
311
|
+
readonly methods: AccountPartialReconcileMethods;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/** Methods of `account.partial.reconcile`: declared ones and transitions. */
|
|
315
|
+
export interface AccountPartialReconcileMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.partial.reconcile'> {
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/** `account.payment` (owner: accounting). */
|
|
319
|
+
export interface AccountPayment {
|
|
320
|
+
readonly name: 'account.payment';
|
|
321
|
+
readonly fields: {
|
|
322
|
+
readonly id: F.Id<'account.payment'>;
|
|
323
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
324
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
325
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
326
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
327
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
328
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
329
|
+
readonly name: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
330
|
+
readonly kind: F.Selection<'inbound' | 'outbound', { readonly required: true; readonly default: true }>;
|
|
331
|
+
readonly partner: F.Many2one<'res.partner', { readonly required: true }>;
|
|
332
|
+
readonly journal: F.Many2one<'account.journal', { readonly required: true }>;
|
|
333
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
334
|
+
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
335
|
+
readonly amount: F.Monetary<'currency', { readonly required: true }>;
|
|
336
|
+
readonly memo: F.Char;
|
|
337
|
+
readonly documents: F.Many2many<'account.move', { readonly required: true }>;
|
|
338
|
+
readonly withholdings: F.One2many<'account.payment.withholding', { readonly required: true }>;
|
|
339
|
+
readonly amountWithheld: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
340
|
+
readonly move: F.Many2one<'account.move'>;
|
|
341
|
+
readonly state: F.State<'draft' | 'posted' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
342
|
+
};
|
|
343
|
+
readonly methods: AccountPaymentMethods;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/** Methods of `account.payment`: declared ones and transitions. */
|
|
347
|
+
export interface AccountPaymentMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.payment'> {
|
|
348
|
+
readonly 'cancel': () => Promise<void>;
|
|
349
|
+
readonly 'post': () => Promise<void>;
|
|
350
|
+
readonly 'redraft': () => Promise<void>;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/** `account.payment.term` (owner: accounting). */
|
|
354
|
+
export interface AccountPaymentTerm {
|
|
355
|
+
readonly name: 'account.payment.term';
|
|
356
|
+
readonly fields: {
|
|
357
|
+
readonly id: F.Id<'account.payment.term'>;
|
|
358
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
359
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
360
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
361
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
362
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
363
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
364
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
365
|
+
readonly note: F.Text;
|
|
366
|
+
readonly lines: F.One2many<'account.payment.term.line', { readonly required: true }>;
|
|
367
|
+
};
|
|
368
|
+
readonly methods: AccountPaymentTermMethods;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/** Methods of `account.payment.term`: declared ones and transitions. */
|
|
372
|
+
export interface AccountPaymentTermMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.payment.term'> {
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/** `account.payment.term.line` (owner: accounting). */
|
|
376
|
+
export interface AccountPaymentTermLine {
|
|
377
|
+
readonly name: 'account.payment.term.line';
|
|
378
|
+
readonly fields: {
|
|
379
|
+
readonly id: F.Id<'account.payment.term.line'>;
|
|
380
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
381
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
382
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
383
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
384
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
385
|
+
readonly term: F.Many2one<'account.payment.term', { readonly required: true }>;
|
|
386
|
+
readonly days: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
387
|
+
readonly percent: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
388
|
+
};
|
|
389
|
+
readonly methods: AccountPaymentTermLineMethods;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/** Methods of `account.payment.term.line`: declared ones and transitions. */
|
|
393
|
+
export interface AccountPaymentTermLineMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.payment.term.line'> {
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/** `account.payment.withholding` (owner: accounting). */
|
|
397
|
+
export interface AccountPaymentWithholding {
|
|
398
|
+
readonly name: 'account.payment.withholding';
|
|
399
|
+
readonly fields: {
|
|
400
|
+
readonly id: F.Id<'account.payment.withholding'>;
|
|
401
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
402
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
403
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
404
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
405
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
406
|
+
readonly payment: F.Many2one<'account.payment', { readonly required: true }>;
|
|
407
|
+
readonly withholding: F.Many2one<'account.withholding', { readonly required: true }>;
|
|
408
|
+
readonly currency: F.Many2one<'res.currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
409
|
+
readonly base: F.Monetary<'currency'>;
|
|
410
|
+
readonly amount: F.Monetary<'currency', { readonly required: true }>;
|
|
411
|
+
};
|
|
412
|
+
readonly methods: AccountPaymentWithholdingMethods;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/** Methods of `account.payment.withholding`: declared ones and transitions. */
|
|
416
|
+
export interface AccountPaymentWithholdingMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.payment.withholding'> {
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/** `account.tax` (owner: product; extended by: accounting). */
|
|
420
|
+
export interface AccountTax {
|
|
421
|
+
readonly name: 'account.tax';
|
|
422
|
+
readonly fields: {
|
|
423
|
+
readonly id: F.Id<'account.tax'>;
|
|
424
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
425
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
426
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
427
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
428
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
429
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
430
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
431
|
+
readonly use: F.Selection<'sale' | 'purchase', { readonly required: true; readonly default: true }>;
|
|
432
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
433
|
+
readonly amountType: F.Selection<'percent' | 'fixed', { readonly required: true; readonly default: true }>;
|
|
434
|
+
readonly rate: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
435
|
+
readonly fixedAmount: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
436
|
+
readonly affectsBase: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
437
|
+
readonly priceIncluded: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
438
|
+
readonly reverseCharge: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
439
|
+
readonly account: F.Many2one<'account.account'>; // accounting
|
|
440
|
+
readonly refundAccount: F.Many2one<'account.account'>; // accounting
|
|
441
|
+
readonly reverseChargeAccount: F.Many2one<'account.account'>; // accounting
|
|
442
|
+
readonly components: F.One2many<'account.tax.component', { readonly required: true }>; // accounting
|
|
443
|
+
};
|
|
444
|
+
readonly methods: AccountTaxMethods;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/** Methods of `account.tax`: declared ones and transitions. */
|
|
448
|
+
export interface AccountTaxMethods extends F.Methods<typeof import('../../product/index.js').productShutro, 'account.tax'>, F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.tax'> {
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** `account.tax.component` (owner: accounting). */
|
|
452
|
+
export interface AccountTaxComponent {
|
|
453
|
+
readonly name: 'account.tax.component';
|
|
454
|
+
readonly fields: {
|
|
455
|
+
readonly id: F.Id<'account.tax.component'>;
|
|
456
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
457
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
458
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
459
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
460
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
461
|
+
readonly tax: F.Many2one<'account.tax', { readonly required: true }>;
|
|
462
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
463
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
464
|
+
readonly share: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
465
|
+
readonly scope: F.Selection<'always' | 'intra' | 'inter', { readonly required: true; readonly default: true }>;
|
|
466
|
+
readonly code: F.Char;
|
|
467
|
+
readonly account: F.Many2one<'account.account'>;
|
|
468
|
+
readonly refundAccount: F.Many2one<'account.account'>;
|
|
469
|
+
readonly reverseChargeAccount: F.Many2one<'account.account'>;
|
|
470
|
+
};
|
|
471
|
+
readonly methods: AccountTaxComponentMethods;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** Methods of `account.tax.component`: declared ones and transitions. */
|
|
475
|
+
export interface AccountTaxComponentMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.tax.component'> {
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/** `account.withholding` (owner: accounting). */
|
|
479
|
+
export interface AccountWithholding {
|
|
480
|
+
readonly name: 'account.withholding';
|
|
481
|
+
readonly fields: {
|
|
482
|
+
readonly id: F.Id<'account.withholding'>;
|
|
483
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
484
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
485
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
486
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
487
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
488
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
489
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
490
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
491
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
492
|
+
readonly direction: F.Selection<'vendor' | 'customer', { readonly required: true; readonly default: true }>;
|
|
493
|
+
readonly base: F.Selection<'untaxed' | 'tax' | 'total', { readonly required: true; readonly default: true }>;
|
|
494
|
+
readonly rate: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
495
|
+
readonly threshold: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
496
|
+
readonly account: F.Many2one<'account.account', { readonly required: true }>;
|
|
497
|
+
};
|
|
498
|
+
readonly methods: AccountWithholdingMethods;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** Methods of `account.withholding`: declared ones and transitions. */
|
|
502
|
+
export interface AccountWithholdingMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.withholding'> {
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/** `approval.level` (owner: permissions). */
|
|
506
|
+
export interface ApprovalLevel {
|
|
507
|
+
readonly name: 'approval.level';
|
|
508
|
+
readonly fields: {
|
|
509
|
+
readonly id: F.Id<'approval.level'>;
|
|
510
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
511
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
512
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
513
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
514
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
515
|
+
readonly policy: F.Many2one<'approval.policy', { readonly required: true }>;
|
|
516
|
+
readonly sequence: F.Integer<{ readonly default: true }>;
|
|
517
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
518
|
+
readonly condition: F.Json;
|
|
519
|
+
readonly approverRole: F.Char<{ readonly required: true }>;
|
|
520
|
+
};
|
|
521
|
+
readonly methods: ApprovalLevelMethods;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/** Methods of `approval.level`: declared ones and transitions. */
|
|
525
|
+
export interface ApprovalLevelMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.level'> {
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/** `approval.policy` (owner: permissions). */
|
|
529
|
+
export interface ApprovalPolicy {
|
|
530
|
+
readonly name: 'approval.policy';
|
|
531
|
+
readonly fields: {
|
|
532
|
+
readonly id: F.Id<'approval.policy'>;
|
|
533
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
534
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
535
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
536
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
537
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
538
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
539
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
540
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
541
|
+
readonly sequence: F.Integer<{ readonly default: true }>;
|
|
542
|
+
readonly company: F.Many2one<'res.company'>;
|
|
543
|
+
readonly onApproved: F.Char;
|
|
544
|
+
readonly onRejected: F.Char;
|
|
545
|
+
readonly levels: F.One2many<'approval.level', { readonly required: true }>;
|
|
546
|
+
};
|
|
547
|
+
readonly methods: ApprovalPolicyMethods;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/** Methods of `approval.policy`: declared ones and transitions. */
|
|
551
|
+
export interface ApprovalPolicyMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.policy'> {
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/** `approval.request` (owner: permissions). */
|
|
555
|
+
export interface ApprovalRequest {
|
|
556
|
+
readonly name: 'approval.request';
|
|
557
|
+
readonly fields: {
|
|
558
|
+
readonly id: F.Id<'approval.request'>;
|
|
559
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
560
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
561
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
562
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
563
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
564
|
+
readonly policy: F.Many2one<'approval.policy'>;
|
|
565
|
+
readonly level: F.Many2one<'approval.level'>;
|
|
566
|
+
readonly levelName: F.Char<{ readonly required: true }>;
|
|
567
|
+
readonly sequence: F.Integer<{ readonly required: true }>;
|
|
568
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
569
|
+
readonly targetId: F.Integer<{ readonly required: true }>;
|
|
570
|
+
readonly company: F.Many2one<'res.company'>;
|
|
571
|
+
readonly approverRole: F.Char<{ readonly required: true }>;
|
|
572
|
+
readonly state: F.Selection<'pending' | 'approved' | 'rejected' | 'cancelled', { readonly required: true; readonly default: true }>;
|
|
573
|
+
readonly requestedBy: F.Many2one<'res.users'>;
|
|
574
|
+
readonly decidedBy: F.Many2one<'res.users'>;
|
|
575
|
+
readonly decidedAt: F.Datetime;
|
|
576
|
+
readonly comment: F.Text;
|
|
577
|
+
};
|
|
578
|
+
readonly methods: ApprovalRequestMethods;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/** Methods of `approval.request`: declared ones and transitions. */
|
|
582
|
+
export interface ApprovalRequestMethods extends F.Methods<typeof import('../../permissions/index.js').permissionsShutro, 'approval.request'> {
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** `audit.event` (owner: base). */
|
|
586
|
+
export interface AuditEvent {
|
|
587
|
+
readonly name: 'audit.event';
|
|
588
|
+
readonly fields: {
|
|
589
|
+
readonly id: F.Id<'audit.event'>;
|
|
590
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
591
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
592
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
593
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
594
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
595
|
+
readonly kind: F.Char<{ readonly required: true }>;
|
|
596
|
+
readonly actor: F.Many2one<'res.users'>;
|
|
597
|
+
readonly company: F.Many2one<'res.company'>;
|
|
598
|
+
readonly targetModel: F.Char;
|
|
599
|
+
readonly targetId: F.Integer;
|
|
600
|
+
readonly summary: F.Char<{ readonly required: true }>;
|
|
601
|
+
readonly details: F.Json;
|
|
602
|
+
readonly ip: F.Char;
|
|
603
|
+
};
|
|
604
|
+
readonly methods: AuditEventMethods;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/** Methods of `audit.event`: declared ones and transitions. */
|
|
608
|
+
export interface AuditEventMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'audit.event'> {
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/** `auth.api_key` (owner: base). */
|
|
612
|
+
export interface AuthApiKey {
|
|
613
|
+
readonly name: 'auth.api_key';
|
|
614
|
+
readonly fields: {
|
|
615
|
+
readonly id: F.Id<'auth.api_key'>;
|
|
616
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
617
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
618
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
619
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
620
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
621
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
622
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
623
|
+
readonly tokenHash: F.Char<{ readonly required: true }>;
|
|
624
|
+
readonly prefix: F.Char<{ readonly required: true }>;
|
|
625
|
+
readonly scopes: F.Text<{ readonly required: true }>;
|
|
626
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
627
|
+
readonly lastUsedAt: F.Datetime;
|
|
628
|
+
readonly lastUsedIp: F.Char;
|
|
629
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
630
|
+
readonly issuedBy: F.Many2one<'res.users'>;
|
|
631
|
+
};
|
|
632
|
+
readonly methods: AuthApiKeyMethods;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/** Methods of `auth.api_key`: declared ones and transitions. */
|
|
636
|
+
export interface AuthApiKeyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.api_key'> {
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/** `auth.credential` (owner: base). */
|
|
640
|
+
export interface AuthCredential {
|
|
641
|
+
readonly name: 'auth.credential';
|
|
642
|
+
readonly fields: {
|
|
643
|
+
readonly id: F.Id<'auth.credential'>;
|
|
644
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
645
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
646
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
647
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
648
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
649
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
650
|
+
readonly passwordHash: F.Char;
|
|
651
|
+
readonly totpSecret: F.Char;
|
|
652
|
+
readonly totpEnabled: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
653
|
+
readonly recoveryCodes: F.Json;
|
|
654
|
+
};
|
|
655
|
+
readonly methods: AuthCredentialMethods;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/** Methods of `auth.credential`: declared ones and transitions. */
|
|
659
|
+
export interface AuthCredentialMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.credential'> {
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/** `auth.policy` (owner: base). */
|
|
663
|
+
export interface AuthPolicy {
|
|
664
|
+
readonly name: 'auth.policy';
|
|
665
|
+
readonly fields: {
|
|
666
|
+
readonly id: F.Id<'auth.policy'>;
|
|
667
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
668
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
669
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
670
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
671
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
672
|
+
readonly twoFactor: F.Selection<'administrators' | 'everyone', { readonly required: true; readonly default: true }>;
|
|
673
|
+
readonly sessionDays: F.Integer;
|
|
674
|
+
};
|
|
675
|
+
readonly methods: AuthPolicyMethods;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/** Methods of `auth.policy`: declared ones and transitions. */
|
|
679
|
+
export interface AuthPolicyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.policy'> {
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/** `auth.session` (owner: base). */
|
|
683
|
+
export interface AuthSession {
|
|
684
|
+
readonly name: 'auth.session';
|
|
685
|
+
readonly fields: {
|
|
686
|
+
readonly id: F.Id<'auth.session'>;
|
|
687
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
688
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
689
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
690
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
691
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
692
|
+
readonly tokenHash: F.Char<{ readonly required: true }>;
|
|
693
|
+
readonly csrfHash: F.Char<{ readonly required: true }>;
|
|
694
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
695
|
+
readonly twoFactorVerified: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
696
|
+
readonly secondFactor: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
697
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
698
|
+
readonly lastSeenAt: F.Datetime<{ readonly required: true }>;
|
|
699
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
700
|
+
readonly ip: F.Char;
|
|
701
|
+
readonly userAgent: F.Char;
|
|
702
|
+
};
|
|
703
|
+
readonly methods: AuthSessionMethods;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/** Methods of `auth.session`: declared ones and transitions. */
|
|
707
|
+
export interface AuthSessionMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.session'> {
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/** `auth.user_grant` (owner: base). */
|
|
711
|
+
export interface AuthUserGrant {
|
|
712
|
+
readonly name: 'auth.user_grant';
|
|
713
|
+
readonly fields: {
|
|
714
|
+
readonly id: F.Id<'auth.user_grant'>;
|
|
715
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
716
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
717
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
718
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
719
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
720
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
721
|
+
readonly company: F.Many2one<'res.company'>;
|
|
722
|
+
readonly grant: F.Char<{ readonly required: true }>;
|
|
723
|
+
readonly expiresAt: F.Datetime;
|
|
724
|
+
readonly reason: F.Char<{ readonly required: true }>;
|
|
725
|
+
};
|
|
726
|
+
readonly methods: AuthUserGrantMethods;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/** Methods of `auth.user_grant`: declared ones and transitions. */
|
|
730
|
+
export interface AuthUserGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_grant'> {
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/** `auth.user_group` (owner: base). */
|
|
734
|
+
export interface AuthUserGroup {
|
|
735
|
+
readonly name: 'auth.user_group';
|
|
736
|
+
readonly fields: {
|
|
737
|
+
readonly id: F.Id<'auth.user_group'>;
|
|
738
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
739
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
740
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
741
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
742
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
743
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
744
|
+
readonly company: F.Many2one<'res.company'>;
|
|
745
|
+
readonly group: F.Char<{ readonly required: true }>;
|
|
746
|
+
};
|
|
747
|
+
readonly methods: AuthUserGroupMethods;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/** Methods of `auth.user_group`: declared ones and transitions. */
|
|
751
|
+
export interface AuthUserGroupMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'auth.user_group'> {
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** `kosh.image` (owner: base). */
|
|
755
|
+
export interface KoshImage {
|
|
756
|
+
readonly name: 'kosh.image';
|
|
757
|
+
readonly fields: {
|
|
758
|
+
readonly id: F.Id<'kosh.image'>;
|
|
759
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
760
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
761
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
762
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
763
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
764
|
+
readonly ownerModel: F.Char<{ readonly required: true }>;
|
|
765
|
+
readonly ownerId: F.Integer<{ readonly required: true }>;
|
|
766
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
767
|
+
readonly data: F.Text<{ readonly required: true }>;
|
|
768
|
+
readonly hash: F.Char<{ readonly required: true }>;
|
|
769
|
+
};
|
|
770
|
+
readonly methods: KoshImageMethods;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/** Methods of `kosh.image`: declared ones and transitions. */
|
|
774
|
+
export interface KoshImageMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.image'> {
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/** `kosh.saved_view` (owner: base). */
|
|
778
|
+
export interface KoshSavedView {
|
|
779
|
+
readonly name: 'kosh.saved_view';
|
|
780
|
+
readonly fields: {
|
|
781
|
+
readonly id: F.Id<'kosh.saved_view'>;
|
|
782
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
783
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
784
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
785
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
786
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
787
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
788
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
789
|
+
readonly viewType: F.Char<{ readonly required: true; readonly default: true }>;
|
|
790
|
+
readonly state: F.Json<unknown, { readonly required: true }>;
|
|
791
|
+
readonly shared: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
792
|
+
readonly isDefault: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
793
|
+
};
|
|
794
|
+
readonly methods: KoshSavedViewMethods;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/** Methods of `kosh.saved_view`: declared ones and transitions. */
|
|
798
|
+
export interface KoshSavedViewMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.saved_view'> {
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/** `kosh.setting` (owner: base). */
|
|
802
|
+
export interface KoshSetting {
|
|
803
|
+
readonly name: 'kosh.setting';
|
|
804
|
+
readonly fields: {
|
|
805
|
+
readonly id: F.Id<'kosh.setting'>;
|
|
806
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
807
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
808
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
809
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
810
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
811
|
+
readonly key: F.Char<{ readonly required: true }>;
|
|
812
|
+
readonly value: F.Json;
|
|
813
|
+
};
|
|
814
|
+
readonly methods: KoshSettingMethods;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/** Methods of `kosh.setting`: declared ones and transitions. */
|
|
818
|
+
export interface KoshSettingMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'kosh.setting'> {
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/** `mail.activity` (owner: messaging). */
|
|
822
|
+
export interface MailActivity {
|
|
823
|
+
readonly name: 'mail.activity';
|
|
824
|
+
readonly fields: {
|
|
825
|
+
readonly id: F.Id<'mail.activity'>;
|
|
826
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
827
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
828
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
829
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
830
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
831
|
+
readonly resModel: F.Char<{ readonly required: true }>;
|
|
832
|
+
readonly resId: F.Integer<{ readonly required: true }>;
|
|
833
|
+
readonly type: F.Many2one<'mail.activity.type', { readonly required: true }>;
|
|
834
|
+
readonly summary: F.Char;
|
|
835
|
+
readonly note: F.Text;
|
|
836
|
+
readonly deadline: F.DateOnly<{ readonly required: true }>;
|
|
837
|
+
readonly assignee: F.Many2one<'res.users', { readonly required: true }>;
|
|
838
|
+
readonly done: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
839
|
+
readonly doneAt: F.Datetime;
|
|
840
|
+
readonly feedback: F.Text;
|
|
841
|
+
};
|
|
842
|
+
readonly methods: MailActivityMethods;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/** Methods of `mail.activity`: declared ones and transitions. */
|
|
846
|
+
export interface MailActivityMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.activity'> {
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/** `mail.activity.type` (owner: messaging). */
|
|
850
|
+
export interface MailActivityType {
|
|
851
|
+
readonly name: 'mail.activity.type';
|
|
852
|
+
readonly fields: {
|
|
853
|
+
readonly id: F.Id<'mail.activity.type'>;
|
|
854
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
855
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
856
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
857
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
858
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
859
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
860
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
861
|
+
readonly key: F.Char;
|
|
862
|
+
readonly icon: F.Char<{ readonly default: true }>;
|
|
863
|
+
readonly days: F.Integer<{ readonly default: true }>;
|
|
864
|
+
readonly sequence: F.Integer<{ readonly default: true }>;
|
|
865
|
+
};
|
|
866
|
+
readonly methods: MailActivityTypeMethods;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/** Methods of `mail.activity.type`: declared ones and transitions. */
|
|
870
|
+
export interface MailActivityTypeMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.activity.type'> {
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/** `mail.channel` (owner: messaging). */
|
|
874
|
+
export interface MailChannel {
|
|
875
|
+
readonly name: 'mail.channel';
|
|
876
|
+
readonly fields: {
|
|
877
|
+
readonly id: F.Id<'mail.channel'>;
|
|
878
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
879
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
880
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
881
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
882
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
883
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
884
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
885
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
886
|
+
readonly kind: F.Selection<'channel' | 'group' | 'direct', { readonly required: true; readonly default: true }>;
|
|
887
|
+
readonly description: F.Char;
|
|
888
|
+
readonly public: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
889
|
+
readonly members: F.One2many<'mail.channel.member', { readonly required: true }>;
|
|
890
|
+
readonly pairKey: F.Char;
|
|
891
|
+
readonly lastMessageAt: F.Datetime;
|
|
892
|
+
};
|
|
893
|
+
readonly methods: MailChannelMethods;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/** Methods of `mail.channel`: declared ones and transitions. */
|
|
897
|
+
export interface MailChannelMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.channel'> {
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/** `mail.channel.member` (owner: messaging). */
|
|
901
|
+
export interface MailChannelMember {
|
|
902
|
+
readonly name: 'mail.channel.member';
|
|
903
|
+
readonly fields: {
|
|
904
|
+
readonly id: F.Id<'mail.channel.member'>;
|
|
905
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
906
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
907
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
908
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
909
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
910
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
911
|
+
readonly channel: F.Many2one<'mail.channel', { readonly required: true }>;
|
|
912
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
913
|
+
readonly lastReadMessage: F.Many2one<'mail.message'>;
|
|
914
|
+
readonly muted: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
915
|
+
readonly pinned: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
916
|
+
};
|
|
917
|
+
readonly methods: MailChannelMemberMethods;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/** Methods of `mail.channel.member`: declared ones and transitions. */
|
|
921
|
+
export interface MailChannelMemberMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.channel.member'> {
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/** `mail.follower` (owner: messaging). */
|
|
925
|
+
export interface MailFollower {
|
|
926
|
+
readonly name: 'mail.follower';
|
|
927
|
+
readonly fields: {
|
|
928
|
+
readonly id: F.Id<'mail.follower'>;
|
|
929
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
930
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
931
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
932
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
933
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
934
|
+
readonly resModel: F.Char<{ readonly required: true }>;
|
|
935
|
+
readonly resId: F.Integer<{ readonly required: true }>;
|
|
936
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
937
|
+
};
|
|
938
|
+
readonly methods: MailFollowerMethods;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/** Methods of `mail.follower`: declared ones and transitions. */
|
|
942
|
+
export interface MailFollowerMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.follower'> {
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/** `mail.message` (owner: messaging). */
|
|
946
|
+
export interface MailMessage {
|
|
947
|
+
readonly name: 'mail.message';
|
|
948
|
+
readonly fields: {
|
|
949
|
+
readonly id: F.Id<'mail.message'>;
|
|
950
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
951
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
952
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
953
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
954
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
955
|
+
readonly resModel: F.Char<{ readonly required: true }>;
|
|
956
|
+
readonly resId: F.Integer<{ readonly required: true }>;
|
|
957
|
+
readonly kind: F.Selection<'comment' | 'note' | 'activity' | 'system', { readonly required: true; readonly default: true }>;
|
|
958
|
+
readonly author: F.Many2one<'res.users'>;
|
|
959
|
+
readonly authorEmail: F.Char;
|
|
960
|
+
readonly authorName: F.Char;
|
|
961
|
+
readonly text: F.Text<{ readonly required: true }>;
|
|
962
|
+
readonly body: F.Text<{ readonly required: true }>;
|
|
963
|
+
readonly mentions: F.Many2many<'res.users', { readonly required: true }>;
|
|
964
|
+
readonly attachments: F.Many2many<'storage.attachment', { readonly required: true }>;
|
|
965
|
+
readonly editedAt: F.Datetime;
|
|
966
|
+
readonly parent: F.Many2one<'mail.message'>;
|
|
967
|
+
readonly replyCount: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
968
|
+
readonly reactions: F.One2many<'mail.message.reaction', { readonly required: true }>;
|
|
969
|
+
readonly deletedAt: F.Datetime;
|
|
970
|
+
};
|
|
971
|
+
readonly methods: MailMessageMethods;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/** Methods of `mail.message`: declared ones and transitions. */
|
|
975
|
+
export interface MailMessageMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.message'> {
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/** `mail.message.reaction` (owner: messaging). */
|
|
979
|
+
export interface MailMessageReaction {
|
|
980
|
+
readonly name: 'mail.message.reaction';
|
|
981
|
+
readonly fields: {
|
|
982
|
+
readonly id: F.Id<'mail.message.reaction'>;
|
|
983
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
984
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
985
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
986
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
987
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
988
|
+
readonly message: F.Many2one<'mail.message', { readonly required: true }>;
|
|
989
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
990
|
+
readonly emoji: F.Char<{ readonly required: true }>;
|
|
991
|
+
};
|
|
992
|
+
readonly methods: MailMessageReactionMethods;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/** Methods of `mail.message.reaction`: declared ones and transitions. */
|
|
996
|
+
export interface MailMessageReactionMethods extends F.Methods<typeof import('../../messaging/index.js').messagingShutro, 'mail.message.reaction'> {
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/** `mrp.bom` (owner: mrp). */
|
|
1000
|
+
export interface MrpBom {
|
|
1001
|
+
readonly name: 'mrp.bom';
|
|
1002
|
+
readonly fields: {
|
|
1003
|
+
readonly id: F.Id<'mrp.bom'>;
|
|
1004
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1005
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1006
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1007
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1008
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1009
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1010
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1011
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1012
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1013
|
+
readonly version: F.Char<{ readonly required: true; readonly default: true }>;
|
|
1014
|
+
readonly validFrom: F.DateOnly;
|
|
1015
|
+
readonly validTo: F.DateOnly;
|
|
1016
|
+
readonly lines: F.One2many<'mrp.bom.line', { readonly required: true }>;
|
|
1017
|
+
readonly operations: F.One2many<'mrp.bom.operation', { readonly required: true }>;
|
|
1018
|
+
readonly byproducts: F.One2many<'mrp.bom.byproduct', { readonly required: true }>;
|
|
1019
|
+
readonly note: F.Text;
|
|
1020
|
+
readonly label: F.Char<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1021
|
+
};
|
|
1022
|
+
readonly methods: MrpBomMethods;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/** Methods of `mrp.bom`: declared ones and transitions. */
|
|
1026
|
+
export interface MrpBomMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.bom'> {
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/** `mrp.bom.byproduct` (owner: mrp). */
|
|
1030
|
+
export interface MrpBomByproduct {
|
|
1031
|
+
readonly name: 'mrp.bom.byproduct';
|
|
1032
|
+
readonly fields: {
|
|
1033
|
+
readonly id: F.Id<'mrp.bom.byproduct'>;
|
|
1034
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1035
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1036
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1037
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1038
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1039
|
+
readonly bom: F.Many2one<'mrp.bom', { readonly required: true }>;
|
|
1040
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1041
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1042
|
+
readonly uom: F.Many2one<'uom.uom'>;
|
|
1043
|
+
readonly costShare: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1044
|
+
};
|
|
1045
|
+
readonly methods: MrpBomByproductMethods;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/** Methods of `mrp.bom.byproduct`: declared ones and transitions. */
|
|
1049
|
+
export interface MrpBomByproductMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.bom.byproduct'> {
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/** `mrp.bom.line` (owner: mrp). */
|
|
1053
|
+
export interface MrpBomLine {
|
|
1054
|
+
readonly name: 'mrp.bom.line';
|
|
1055
|
+
readonly fields: {
|
|
1056
|
+
readonly id: F.Id<'mrp.bom.line'>;
|
|
1057
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1058
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1059
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1060
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1061
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1062
|
+
readonly bom: F.Many2one<'mrp.bom', { readonly required: true }>;
|
|
1063
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1064
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1065
|
+
readonly uom: F.Many2one<'uom.uom'>;
|
|
1066
|
+
};
|
|
1067
|
+
readonly methods: MrpBomLineMethods;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/** Methods of `mrp.bom.line`: declared ones and transitions. */
|
|
1071
|
+
export interface MrpBomLineMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.bom.line'> {
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/** `mrp.bom.operation` (owner: mrp). */
|
|
1075
|
+
export interface MrpBomOperation {
|
|
1076
|
+
readonly name: 'mrp.bom.operation';
|
|
1077
|
+
readonly fields: {
|
|
1078
|
+
readonly id: F.Id<'mrp.bom.operation'>;
|
|
1079
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1080
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1081
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1082
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1083
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1084
|
+
readonly bom: F.Many2one<'mrp.bom', { readonly required: true }>;
|
|
1085
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1086
|
+
readonly workcenter: F.Many2one<'mrp.workcenter', { readonly required: true }>;
|
|
1087
|
+
readonly minutes: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1088
|
+
};
|
|
1089
|
+
readonly methods: MrpBomOperationMethods;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/** Methods of `mrp.bom.operation`: declared ones and transitions. */
|
|
1093
|
+
export interface MrpBomOperationMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.bom.operation'> {
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/** `mrp.production` (owner: mrp). */
|
|
1097
|
+
export interface MrpProduction {
|
|
1098
|
+
readonly name: 'mrp.production';
|
|
1099
|
+
readonly fields: {
|
|
1100
|
+
readonly id: F.Id<'mrp.production'>;
|
|
1101
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1102
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1103
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1104
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1105
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1106
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1107
|
+
readonly name: F.Char<{ readonly required: true; readonly readonly: true; readonly sequence: true }>;
|
|
1108
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1109
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1110
|
+
readonly bom: F.Many2one<'mrp.bom'>;
|
|
1111
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
1112
|
+
readonly warehouse: F.Many2one<'stock.warehouse'>;
|
|
1113
|
+
readonly components: F.One2many<'mrp.production.component', { readonly required: true }>;
|
|
1114
|
+
readonly scraps: F.One2many<'stock.scrap', { readonly required: true }>;
|
|
1115
|
+
readonly workorders: F.One2many<'mrp.workorder', { readonly required: true }>;
|
|
1116
|
+
readonly consumption: F.Many2one<'stock.picking'>;
|
|
1117
|
+
readonly output: F.Many2one<'stock.picking'>;
|
|
1118
|
+
readonly materialCost: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1119
|
+
readonly operationCost: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1120
|
+
readonly totalCost: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1121
|
+
readonly unitCost: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1122
|
+
readonly status: F.Selection<'draft' | 'waiting' | 'ready' | 'done' | 'cancelled', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1123
|
+
readonly note: F.Text;
|
|
1124
|
+
readonly state: F.State<'draft' | 'confirmed' | 'done' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
1125
|
+
};
|
|
1126
|
+
readonly methods: MrpProductionMethods;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
/** Methods of `mrp.production`: declared ones and transitions. */
|
|
1130
|
+
export interface MrpProductionMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.production'> {
|
|
1131
|
+
readonly 'cancel': () => Promise<void>;
|
|
1132
|
+
readonly 'check': () => Promise<void>;
|
|
1133
|
+
readonly 'confirm': () => Promise<void>;
|
|
1134
|
+
readonly 'produce': () => Promise<void>;
|
|
1135
|
+
readonly 'redraft': () => Promise<void>;
|
|
1136
|
+
readonly 'reserve': () => Promise<void>;
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/** `mrp.production.component` (owner: mrp). */
|
|
1140
|
+
export interface MrpProductionComponent {
|
|
1141
|
+
readonly name: 'mrp.production.component';
|
|
1142
|
+
readonly fields: {
|
|
1143
|
+
readonly id: F.Id<'mrp.production.component'>;
|
|
1144
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1145
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1146
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1147
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1148
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1149
|
+
readonly production: F.Many2one<'mrp.production', { readonly required: true }>;
|
|
1150
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1151
|
+
readonly required: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1152
|
+
readonly available: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1153
|
+
readonly short: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1154
|
+
readonly cost: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1155
|
+
};
|
|
1156
|
+
readonly methods: MrpProductionComponentMethods;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/** Methods of `mrp.production.component`: declared ones and transitions. */
|
|
1160
|
+
export interface MrpProductionComponentMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.production.component'> {
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/** `mrp.workcenter` (owner: mrp). */
|
|
1164
|
+
export interface MrpWorkcenter {
|
|
1165
|
+
readonly name: 'mrp.workcenter';
|
|
1166
|
+
readonly fields: {
|
|
1167
|
+
readonly id: F.Id<'mrp.workcenter'>;
|
|
1168
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1169
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1170
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1171
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1172
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1173
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1174
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1175
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1176
|
+
readonly code: F.Char;
|
|
1177
|
+
readonly hoursPerDay: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1178
|
+
readonly costPerHour: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1179
|
+
readonly note: F.Text;
|
|
1180
|
+
};
|
|
1181
|
+
readonly methods: MrpWorkcenterMethods;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/** Methods of `mrp.workcenter`: declared ones and transitions. */
|
|
1185
|
+
export interface MrpWorkcenterMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.workcenter'> {
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/** `mrp.workorder` (owner: mrp). */
|
|
1189
|
+
export interface MrpWorkorder {
|
|
1190
|
+
readonly name: 'mrp.workorder';
|
|
1191
|
+
readonly fields: {
|
|
1192
|
+
readonly id: F.Id<'mrp.workorder'>;
|
|
1193
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1194
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1195
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1196
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1197
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1198
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1199
|
+
readonly production: F.Many2one<'mrp.production', { readonly required: true }>;
|
|
1200
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1201
|
+
readonly workcenter: F.Many2one<'mrp.workcenter', { readonly required: true }>;
|
|
1202
|
+
readonly plannedMinutes: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1203
|
+
readonly plannedStart: F.Datetime;
|
|
1204
|
+
readonly plannedStop: F.Datetime;
|
|
1205
|
+
readonly startedAt: F.Datetime;
|
|
1206
|
+
readonly finishedAt: F.Datetime;
|
|
1207
|
+
readonly actualMinutes: F.Decimal;
|
|
1208
|
+
readonly state: F.State<'ready' | 'progress' | 'done' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
1209
|
+
};
|
|
1210
|
+
readonly methods: MrpWorkorderMethods;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/** Methods of `mrp.workorder`: declared ones and transitions. */
|
|
1214
|
+
export interface MrpWorkorderMethods extends F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'mrp.workorder'> {
|
|
1215
|
+
readonly 'cancel': () => Promise<void>;
|
|
1216
|
+
readonly 'close': () => Promise<void>;
|
|
1217
|
+
readonly 'finish': () => Promise<void>;
|
|
1218
|
+
readonly 'start': () => Promise<void>;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/** `oauth.app` (owner: base). */
|
|
1222
|
+
export interface OauthApp {
|
|
1223
|
+
readonly name: 'oauth.app';
|
|
1224
|
+
readonly fields: {
|
|
1225
|
+
readonly id: F.Id<'oauth.app'>;
|
|
1226
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1227
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1228
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1229
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1230
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1231
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1232
|
+
readonly clientId: F.Char<{ readonly required: true }>;
|
|
1233
|
+
readonly secretHash: F.Char;
|
|
1234
|
+
readonly confidential: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1235
|
+
readonly redirectUris: F.Text<{ readonly required: true }>;
|
|
1236
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
1237
|
+
readonly homepage: F.Char;
|
|
1238
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1239
|
+
readonly owner: F.Many2one<'res.users'>;
|
|
1240
|
+
};
|
|
1241
|
+
readonly methods: OauthAppMethods;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
/** Methods of `oauth.app`: declared ones and transitions. */
|
|
1245
|
+
export interface OauthAppMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.app'> {
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/** `oauth.code` (owner: base). */
|
|
1249
|
+
export interface OauthCode {
|
|
1250
|
+
readonly name: 'oauth.code';
|
|
1251
|
+
readonly fields: {
|
|
1252
|
+
readonly id: F.Id<'oauth.code'>;
|
|
1253
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1254
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1255
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1256
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1257
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1258
|
+
readonly codeHash: F.Char<{ readonly required: true }>;
|
|
1259
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
1260
|
+
readonly redirectUri: F.Char<{ readonly required: true }>;
|
|
1261
|
+
readonly challenge: F.Char;
|
|
1262
|
+
readonly expiresAt: F.Datetime<{ readonly required: true }>;
|
|
1263
|
+
readonly used: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1264
|
+
};
|
|
1265
|
+
readonly methods: OauthCodeMethods;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/** Methods of `oauth.code`: declared ones and transitions. */
|
|
1269
|
+
export interface OauthCodeMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.code'> {
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
/** `oauth.grant` (owner: base). */
|
|
1273
|
+
export interface OauthGrant {
|
|
1274
|
+
readonly name: 'oauth.grant';
|
|
1275
|
+
readonly fields: {
|
|
1276
|
+
readonly id: F.Id<'oauth.grant'>;
|
|
1277
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1278
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1279
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1280
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1281
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1282
|
+
readonly user: F.Many2one<'res.users', { readonly required: true }>;
|
|
1283
|
+
readonly app: F.Many2one<'oauth.app', { readonly required: true }>;
|
|
1284
|
+
readonly scopes: F.Char<{ readonly required: true }>;
|
|
1285
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1286
|
+
readonly lastUsedAt: F.Datetime;
|
|
1287
|
+
};
|
|
1288
|
+
readonly methods: OauthGrantMethods;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/** Methods of `oauth.grant`: declared ones and transitions. */
|
|
1292
|
+
export interface OauthGrantMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.grant'> {
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/** `oauth.token` (owner: base). */
|
|
1296
|
+
export interface OauthToken {
|
|
1297
|
+
readonly name: 'oauth.token';
|
|
1298
|
+
readonly fields: {
|
|
1299
|
+
readonly id: F.Id<'oauth.token'>;
|
|
1300
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1301
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1302
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1303
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1304
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1305
|
+
readonly grant: F.Many2one<'oauth.grant', { readonly required: true }>;
|
|
1306
|
+
readonly accessHash: F.Char<{ readonly required: true }>;
|
|
1307
|
+
readonly refreshHash: F.Char<{ readonly required: true }>;
|
|
1308
|
+
readonly accessExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
1309
|
+
readonly refreshExpiresAt: F.Datetime<{ readonly required: true }>;
|
|
1310
|
+
readonly revoked: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1311
|
+
readonly rotated: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1312
|
+
};
|
|
1313
|
+
readonly methods: OauthTokenMethods;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/** Methods of `oauth.token`: declared ones and transitions. */
|
|
1317
|
+
export interface OauthTokenMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'oauth.token'> {
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
/** `product.category` (owner: product; extended by: stock_account). */
|
|
1321
|
+
export interface ProductCategory {
|
|
1322
|
+
readonly name: 'product.category';
|
|
1323
|
+
readonly fields: {
|
|
1324
|
+
readonly id: F.Id<'product.category'>;
|
|
1325
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1326
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1327
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1328
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1329
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1330
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
1331
|
+
readonly parent: F.Many2one<'product.category'>;
|
|
1332
|
+
readonly costMethod: F.Selection<'average' | 'fifo'>; // stock_account
|
|
1333
|
+
readonly stockValuationAccount: F.Many2one<'account.account'>; // stock_account
|
|
1334
|
+
readonly stockCogsAccount: F.Many2one<'account.account'>; // stock_account
|
|
1335
|
+
};
|
|
1336
|
+
readonly methods: ProductCategoryMethods;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/** Methods of `product.category`: declared ones and transitions. */
|
|
1340
|
+
export interface ProductCategoryMethods extends F.Methods<typeof import('../../product/index.js').productShutro, 'product.category'>, F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'product.category'> {
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/** `product.product` (owner: product; extended by: stock, stock_account). */
|
|
1344
|
+
export interface ProductProduct {
|
|
1345
|
+
readonly name: 'product.product';
|
|
1346
|
+
readonly fields: {
|
|
1347
|
+
readonly id: F.Id<'product.product'>;
|
|
1348
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1349
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1350
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1351
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1352
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1353
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1354
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
1355
|
+
readonly code: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
1356
|
+
readonly kind: F.Selection<'goods' | 'service', { readonly required: true; readonly default: true }>;
|
|
1357
|
+
readonly category: F.Many2one<'product.category'>;
|
|
1358
|
+
readonly uom: F.Many2one<'uom.uom'>;
|
|
1359
|
+
readonly barcode: F.Char;
|
|
1360
|
+
readonly image: F.Many2one<'storage.attachment'>;
|
|
1361
|
+
readonly listPrice: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1362
|
+
readonly standardPrice: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1363
|
+
readonly saleOk: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1364
|
+
readonly purchaseOk: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1365
|
+
readonly taxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
1366
|
+
readonly purchaseTaxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
1367
|
+
readonly tax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
1368
|
+
readonly purchaseTax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
1369
|
+
readonly description: F.Text<{ readonly translate: true }>;
|
|
1370
|
+
readonly tracking: F.Selection<'none' | 'lot' | 'serial', { readonly required: true; readonly default: true }>; // stock
|
|
1371
|
+
readonly lots: F.One2many<'stock.lot', { readonly required: true }>; // stock
|
|
1372
|
+
readonly quants: F.One2many<'stock.quant', { readonly required: true }>; // stock
|
|
1373
|
+
readonly qtyOnHand: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>; // stock
|
|
1374
|
+
readonly qtyReserved: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>; // stock
|
|
1375
|
+
readonly qtyAvailable: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>; // stock
|
|
1376
|
+
readonly costMethod: F.Selection<'average' | 'fifo'>; // stock_account
|
|
1377
|
+
readonly valuationLayers: F.One2many<'stock.valuation.layer', { readonly required: true }>; // stock_account
|
|
1378
|
+
};
|
|
1379
|
+
readonly methods: ProductProductMethods;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/** Methods of `product.product`: declared ones and transitions. */
|
|
1383
|
+
export interface ProductProductMethods extends F.Methods<typeof import('../../product/index.js').productShutro, 'product.product'>, F.Methods<typeof import('../../stock/index.js').stockShutro, 'product.product'>, F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'product.product'> {
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/** `report.dashboard` (owner: reporting). */
|
|
1387
|
+
export interface ReportDashboard {
|
|
1388
|
+
readonly name: 'report.dashboard';
|
|
1389
|
+
readonly fields: {
|
|
1390
|
+
readonly id: F.Id<'report.dashboard'>;
|
|
1391
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1392
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1393
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1394
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1395
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1396
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1397
|
+
readonly items: F.Json<unknown, { readonly required: true; readonly default: true }>;
|
|
1398
|
+
readonly shared: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1399
|
+
readonly key: F.Char;
|
|
1400
|
+
};
|
|
1401
|
+
readonly methods: ReportDashboardMethods;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/** Methods of `report.dashboard`: declared ones and transitions. */
|
|
1405
|
+
export interface ReportDashboardMethods extends F.Methods<typeof import('../../reporting/index.js').reportingShutro, 'report.dashboard'> {
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/** `report.output` (owner: reporting). */
|
|
1409
|
+
export interface ReportOutput {
|
|
1410
|
+
readonly name: 'report.output';
|
|
1411
|
+
readonly fields: {
|
|
1412
|
+
readonly id: F.Id<'report.output'>;
|
|
1413
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1414
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1415
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1416
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1417
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1418
|
+
readonly schedule: F.Many2one<'report.schedule'>;
|
|
1419
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1420
|
+
readonly filename: F.Char<{ readonly required: true }>;
|
|
1421
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
1422
|
+
readonly size: F.Integer<{ readonly required: true }>;
|
|
1423
|
+
readonly content: F.Binary<{ readonly required: true }>;
|
|
1424
|
+
readonly recipients: F.Many2many<'res.users', { readonly required: true }>;
|
|
1425
|
+
};
|
|
1426
|
+
readonly methods: ReportOutputMethods;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/** Methods of `report.output`: declared ones and transitions. */
|
|
1430
|
+
export interface ReportOutputMethods extends F.Methods<typeof import('../../reporting/index.js').reportingShutro, 'report.output'> {
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
/** `report.schedule` (owner: reporting). */
|
|
1434
|
+
export interface ReportSchedule {
|
|
1435
|
+
readonly name: 'report.schedule';
|
|
1436
|
+
readonly fields: {
|
|
1437
|
+
readonly id: F.Id<'report.schedule'>;
|
|
1438
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1439
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1440
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1441
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1442
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1443
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1444
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1445
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
1446
|
+
readonly kind: F.Selection<'pivot' | 'list' | 'document', { readonly required: true; readonly default: true }>;
|
|
1447
|
+
readonly query: F.Json<unknown, { readonly required: true; readonly default: true }>;
|
|
1448
|
+
readonly template: F.Many2one<'report.template'>;
|
|
1449
|
+
readonly format: F.Selection<'xlsx' | 'csv' | 'pdf', { readonly required: true; readonly default: true }>;
|
|
1450
|
+
readonly frequency: F.Selection<'daily' | 'weekly' | 'monthly', { readonly required: true; readonly default: true }>;
|
|
1451
|
+
readonly hour: F.Integer<{ readonly default: true }>;
|
|
1452
|
+
readonly day: F.Integer<{ readonly default: true }>;
|
|
1453
|
+
readonly tz: F.Char<{ readonly default: true }>;
|
|
1454
|
+
readonly recipients: F.Many2many<'res.users', { readonly required: true }>;
|
|
1455
|
+
readonly nextRunAt: F.Datetime;
|
|
1456
|
+
readonly lastRunAt: F.Datetime;
|
|
1457
|
+
readonly lastError: F.Char;
|
|
1458
|
+
readonly shared: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1459
|
+
};
|
|
1460
|
+
readonly methods: ReportScheduleMethods;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/** Methods of `report.schedule`: declared ones and transitions. */
|
|
1464
|
+
export interface ReportScheduleMethods extends F.Methods<typeof import('../../reporting/index.js').reportingShutro, 'report.schedule'> {
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/** `report.spreadsheet` (owner: reporting). */
|
|
1468
|
+
export interface ReportSpreadsheet {
|
|
1469
|
+
readonly name: 'report.spreadsheet';
|
|
1470
|
+
readonly fields: {
|
|
1471
|
+
readonly id: F.Id<'report.spreadsheet'>;
|
|
1472
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1473
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1474
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1475
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1476
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1477
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1478
|
+
readonly cells: F.Json<unknown, { readonly required: true; readonly default: true }>;
|
|
1479
|
+
readonly shared: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1480
|
+
};
|
|
1481
|
+
readonly methods: ReportSpreadsheetMethods;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/** Methods of `report.spreadsheet`: declared ones and transitions. */
|
|
1485
|
+
export interface ReportSpreadsheetMethods extends F.Methods<typeof import('../../reporting/index.js').reportingShutro, 'report.spreadsheet'> {
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
/** `report.template` (owner: reporting). */
|
|
1489
|
+
export interface ReportTemplate {
|
|
1490
|
+
readonly name: 'report.template';
|
|
1491
|
+
readonly fields: {
|
|
1492
|
+
readonly id: F.Id<'report.template'>;
|
|
1493
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1494
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1495
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1496
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1497
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1498
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1499
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1500
|
+
readonly targetModel: F.Char<{ readonly required: true }>;
|
|
1501
|
+
readonly key: F.Char;
|
|
1502
|
+
readonly layout: F.Json<unknown, { readonly required: true }>;
|
|
1503
|
+
readonly scope: F.Selection<'record' | 'list', { readonly required: true; readonly default: true }>;
|
|
1504
|
+
};
|
|
1505
|
+
readonly methods: ReportTemplateMethods;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/** Methods of `report.template`: declared ones and transitions. */
|
|
1509
|
+
export interface ReportTemplateMethods extends F.Methods<typeof import('../../reporting/index.js').reportingShutro, 'report.template'> {
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/** `res.bank.account` (owner: accounting). */
|
|
1513
|
+
export interface ResBankAccount {
|
|
1514
|
+
readonly name: 'res.bank.account';
|
|
1515
|
+
readonly fields: {
|
|
1516
|
+
readonly id: F.Id<'res.bank.account'>;
|
|
1517
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1518
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1519
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1520
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1521
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1522
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1523
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1524
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
1525
|
+
readonly bank: F.Char<{ readonly required: true }>;
|
|
1526
|
+
readonly branch: F.Char;
|
|
1527
|
+
readonly number: F.Char<{ readonly required: true }>;
|
|
1528
|
+
readonly holder: F.Char;
|
|
1529
|
+
readonly routing: F.Char;
|
|
1530
|
+
readonly swift: F.Char;
|
|
1531
|
+
readonly currency: F.Many2one<'res.currency'>;
|
|
1532
|
+
};
|
|
1533
|
+
readonly methods: ResBankAccountMethods;
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/** Methods of `res.bank.account`: declared ones and transitions. */
|
|
1537
|
+
export interface ResBankAccountMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.bank.account'> {
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/** `res.company` (owner: base; extended by: contacts, accounting, stock_account). */
|
|
1541
|
+
export interface ResCompany {
|
|
1542
|
+
readonly name: 'res.company';
|
|
1543
|
+
readonly fields: {
|
|
1544
|
+
readonly id: F.Id<'res.company'>;
|
|
1545
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1546
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1547
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1548
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1549
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1550
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1551
|
+
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
1552
|
+
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
1553
|
+
readonly accentColor: F.Char;
|
|
1554
|
+
readonly street: F.Char;
|
|
1555
|
+
readonly city: F.Char;
|
|
1556
|
+
readonly zip: F.Char;
|
|
1557
|
+
readonly email: F.Char;
|
|
1558
|
+
readonly phone: F.Char;
|
|
1559
|
+
readonly website: F.Char;
|
|
1560
|
+
readonly contactTaxIdRequired: F.Bool<{ readonly required: true; readonly default: true }>; // contacts
|
|
1561
|
+
readonly contactUniqueEmail: F.Bool<{ readonly required: true; readonly default: true }>; // contacts
|
|
1562
|
+
readonly fiscalYearStart: F.Integer<{ readonly required: true; readonly default: true }>; // accounting
|
|
1563
|
+
readonly chartTemplate: F.Char; // accounting
|
|
1564
|
+
readonly country: F.Char; // accounting
|
|
1565
|
+
readonly state: F.Char; // accounting
|
|
1566
|
+
readonly lockDate: F.DateOnly; // accounting
|
|
1567
|
+
readonly taxLockDate: F.DateOnly; // accounting
|
|
1568
|
+
readonly accountReceivable: F.Many2one<'account.account'>; // accounting
|
|
1569
|
+
readonly accountPayable: F.Many2one<'account.account'>; // accounting
|
|
1570
|
+
readonly accountExchangeGain: F.Many2one<'account.account'>; // accounting
|
|
1571
|
+
readonly accountExchangeLoss: F.Many2one<'account.account'>; // accounting
|
|
1572
|
+
readonly accountRetainedEarnings: F.Many2one<'account.account'>; // accounting
|
|
1573
|
+
readonly stockJournal: F.Many2one<'account.journal'>; // stock_account
|
|
1574
|
+
readonly stockValuationAccount: F.Many2one<'account.account'>; // stock_account
|
|
1575
|
+
readonly stockInterimAccount: F.Many2one<'account.account'>; // stock_account
|
|
1576
|
+
readonly stockCogsAccount: F.Many2one<'account.account'>; // stock_account
|
|
1577
|
+
readonly stockAdjustmentAccount: F.Many2one<'account.account'>; // stock_account
|
|
1578
|
+
readonly stockPriceDiffAccount: F.Many2one<'account.account'>; // stock_account
|
|
1579
|
+
readonly stockProductionAccount: F.Many2one<'account.account'>; // stock_account
|
|
1580
|
+
};
|
|
1581
|
+
readonly methods: ResCompanyMethods;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/** Methods of `res.company`: declared ones and transitions. */
|
|
1585
|
+
export interface ResCompanyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.company'>, F.Methods<typeof import('../../contacts/index.js').contactsShutro, 'res.company'>, F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.company'>, F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'res.company'> {
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
/** `res.currency` (owner: base). */
|
|
1589
|
+
export interface ResCurrency {
|
|
1590
|
+
readonly name: 'res.currency';
|
|
1591
|
+
readonly fields: {
|
|
1592
|
+
readonly id: F.Id<'res.currency'>;
|
|
1593
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1594
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1595
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1596
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1597
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1598
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1599
|
+
readonly rounding: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1600
|
+
readonly decimalPlaces: F.Integer<{ readonly default: true }>;
|
|
1601
|
+
};
|
|
1602
|
+
readonly methods: ResCurrencyMethods;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
/** Methods of `res.currency`: declared ones and transitions. */
|
|
1606
|
+
export interface ResCurrencyMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.currency'> {
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
/** `res.currency.rate` (owner: accounting). */
|
|
1610
|
+
export interface ResCurrencyRate {
|
|
1611
|
+
readonly name: 'res.currency.rate';
|
|
1612
|
+
readonly fields: {
|
|
1613
|
+
readonly id: F.Id<'res.currency.rate'>;
|
|
1614
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1615
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1616
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1617
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1618
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1619
|
+
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
1620
|
+
readonly company: F.Many2one<'res.company'>;
|
|
1621
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
1622
|
+
readonly rate: F.Decimal<{ readonly required: true }>;
|
|
1623
|
+
};
|
|
1624
|
+
readonly methods: ResCurrencyRateMethods;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
/** Methods of `res.currency.rate`: declared ones and transitions. */
|
|
1628
|
+
export interface ResCurrencyRateMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.currency.rate'> {
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/** `res.partner` (owner: contacts; extended by: accounting). */
|
|
1632
|
+
export interface ResPartner {
|
|
1633
|
+
readonly name: 'res.partner';
|
|
1634
|
+
readonly fields: {
|
|
1635
|
+
readonly id: F.Id<'res.partner'>;
|
|
1636
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1637
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1638
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1639
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1640
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1641
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1642
|
+
readonly company: F.Many2one<'res.company', { readonly default: true }>;
|
|
1643
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1644
|
+
readonly image: F.Many2one<'storage.attachment'>;
|
|
1645
|
+
readonly tags: F.Many2many<'res.partner.tag', { readonly required: true }>;
|
|
1646
|
+
readonly latitude: F.Decimal;
|
|
1647
|
+
readonly longitude: F.Decimal;
|
|
1648
|
+
readonly isCompany: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1649
|
+
readonly parent: F.Many2one<'res.partner'>;
|
|
1650
|
+
readonly contacts: F.One2many<'res.partner', { readonly required: true }>;
|
|
1651
|
+
readonly email: F.Char;
|
|
1652
|
+
readonly phone: F.Char;
|
|
1653
|
+
readonly mobile: F.Char;
|
|
1654
|
+
readonly website: F.Char;
|
|
1655
|
+
readonly street: F.Char;
|
|
1656
|
+
readonly city: F.Char;
|
|
1657
|
+
readonly zip: F.Char;
|
|
1658
|
+
readonly country: F.Char;
|
|
1659
|
+
readonly state: F.Char;
|
|
1660
|
+
readonly taxId: F.Char;
|
|
1661
|
+
readonly isCustomer: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1662
|
+
readonly isVendor: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1663
|
+
readonly currency: F.Many2one<'res.currency'>;
|
|
1664
|
+
readonly notes: F.Text;
|
|
1665
|
+
readonly withholdings: F.Many2many<'account.withholding', { readonly required: true }>; // accounting
|
|
1666
|
+
};
|
|
1667
|
+
readonly methods: ResPartnerMethods;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
/** Methods of `res.partner`: declared ones and transitions. */
|
|
1671
|
+
export interface ResPartnerMethods extends F.Methods<typeof import('../../contacts/index.js').contactsShutro, 'res.partner'>, F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.partner'> {
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
/** `res.partner.tag` (owner: contacts). */
|
|
1675
|
+
export interface ResPartnerTag {
|
|
1676
|
+
readonly name: 'res.partner.tag';
|
|
1677
|
+
readonly fields: {
|
|
1678
|
+
readonly id: F.Id<'res.partner.tag'>;
|
|
1679
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1680
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1681
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1682
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1683
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1684
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1685
|
+
};
|
|
1686
|
+
readonly methods: ResPartnerTagMethods;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
/** Methods of `res.partner.tag`: declared ones and transitions. */
|
|
1690
|
+
export interface ResPartnerTagMethods extends F.Methods<typeof import('../../contacts/index.js').contactsShutro, 'res.partner.tag'> {
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
/** `res.users` (owner: base). */
|
|
1694
|
+
export interface ResUsers {
|
|
1695
|
+
readonly name: 'res.users';
|
|
1696
|
+
readonly fields: {
|
|
1697
|
+
readonly id: F.Id<'res.users'>;
|
|
1698
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1699
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1700
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1701
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1702
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1703
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1704
|
+
readonly login: F.Char<{ readonly required: true }>;
|
|
1705
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1706
|
+
readonly email: F.Char;
|
|
1707
|
+
readonly phone: F.Char;
|
|
1708
|
+
readonly company: F.Many2one<'res.company'>;
|
|
1709
|
+
readonly companies: F.Many2many<'res.company', { readonly required: true }>;
|
|
1710
|
+
readonly lang: F.Char<{ readonly default: true }>;
|
|
1711
|
+
readonly tz: F.Char<{ readonly default: true }>;
|
|
1712
|
+
readonly isService: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1713
|
+
};
|
|
1714
|
+
readonly methods: ResUsersMethods;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/** Methods of `res.users`: declared ones and transitions. */
|
|
1718
|
+
export interface ResUsersMethods extends F.Methods<typeof import('../../server/index.js').baseShutro, 'res.users'> {
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/** `stock.count` (owner: stock). */
|
|
1722
|
+
export interface StockCount {
|
|
1723
|
+
readonly name: 'stock.count';
|
|
1724
|
+
readonly fields: {
|
|
1725
|
+
readonly id: F.Id<'stock.count'>;
|
|
1726
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1727
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1728
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1729
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1730
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1731
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1732
|
+
readonly name: F.Char<{ readonly required: true; readonly readonly: true; readonly sequence: true }>;
|
|
1733
|
+
readonly location: F.Many2one<'stock.location', { readonly required: true }>;
|
|
1734
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
1735
|
+
readonly user: F.Many2one<'res.users', { readonly default: true }>;
|
|
1736
|
+
readonly lines: F.One2many<'stock.count.line', { readonly required: true }>;
|
|
1737
|
+
readonly adjustments: F.One2many<'stock.picking', { readonly required: true }>;
|
|
1738
|
+
readonly note: F.Text;
|
|
1739
|
+
readonly state: F.State<'draft' | 'counting' | 'done' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
1740
|
+
};
|
|
1741
|
+
readonly methods: StockCountMethods;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
/** Methods of `stock.count`: declared ones and transitions. */
|
|
1745
|
+
export interface StockCountMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.count'> {
|
|
1746
|
+
readonly 'apply': () => Promise<void>;
|
|
1747
|
+
readonly 'cancel': () => Promise<void>;
|
|
1748
|
+
readonly 'redraft': () => Promise<void>;
|
|
1749
|
+
readonly 'start': () => Promise<void>;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/** `stock.count.line` (owner: stock). */
|
|
1753
|
+
export interface StockCountLine {
|
|
1754
|
+
readonly name: 'stock.count.line';
|
|
1755
|
+
readonly fields: {
|
|
1756
|
+
readonly id: F.Id<'stock.count.line'>;
|
|
1757
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1758
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1759
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1760
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1761
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1762
|
+
readonly count: F.Many2one<'stock.count', { readonly required: true }>;
|
|
1763
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1764
|
+
readonly lot: F.Many2one<'stock.lot'>;
|
|
1765
|
+
readonly expected: F.Decimal;
|
|
1766
|
+
readonly counted: F.Decimal;
|
|
1767
|
+
readonly difference: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1768
|
+
};
|
|
1769
|
+
readonly methods: StockCountLineMethods;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
/** Methods of `stock.count.line`: declared ones and transitions. */
|
|
1773
|
+
export interface StockCountLineMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.count.line'> {
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/** `stock.location` (owner: stock). */
|
|
1777
|
+
export interface StockLocation {
|
|
1778
|
+
readonly name: 'stock.location';
|
|
1779
|
+
readonly fields: {
|
|
1780
|
+
readonly id: F.Id<'stock.location'>;
|
|
1781
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1782
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1783
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1784
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1785
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1786
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1787
|
+
readonly company: F.Many2one<'res.company', { readonly default: true }>;
|
|
1788
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
1789
|
+
readonly parent: F.Many2one<'stock.location'>;
|
|
1790
|
+
readonly parentPath: F.Char<{ readonly readonly: true }>;
|
|
1791
|
+
readonly children: F.One2many<'stock.location', { readonly required: true }>;
|
|
1792
|
+
readonly warehouse: F.Many2one<'stock.warehouse'>;
|
|
1793
|
+
readonly usage: F.Selection<'internal' | 'vendor' | 'customer' | 'adjustment' | 'production' | 'transit', { readonly required: true; readonly default: true }>;
|
|
1794
|
+
readonly fullName: F.Char<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1795
|
+
};
|
|
1796
|
+
readonly methods: StockLocationMethods;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
/** Methods of `stock.location`: declared ones and transitions. */
|
|
1800
|
+
export interface StockLocationMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.location'> {
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/** `stock.lot` (owner: stock). */
|
|
1804
|
+
export interface StockLot {
|
|
1805
|
+
readonly name: 'stock.lot';
|
|
1806
|
+
readonly fields: {
|
|
1807
|
+
readonly id: F.Id<'stock.lot'>;
|
|
1808
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1809
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1810
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1811
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1812
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1813
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1814
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
1815
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1816
|
+
readonly expiryDate: F.DateOnly;
|
|
1817
|
+
readonly quants: F.One2many<'stock.quant', { readonly required: true }>;
|
|
1818
|
+
readonly qtyOnHand: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1819
|
+
readonly history: F.One2many<'stock.lot.line', { readonly required: true }>;
|
|
1820
|
+
readonly note: F.Text;
|
|
1821
|
+
};
|
|
1822
|
+
readonly methods: StockLotMethods;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
/** Methods of `stock.lot`: declared ones and transitions. */
|
|
1826
|
+
export interface StockLotMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.lot'> {
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
/** `stock.lot.line` (owner: stock). */
|
|
1830
|
+
export interface StockLotLine {
|
|
1831
|
+
readonly name: 'stock.lot.line';
|
|
1832
|
+
readonly fields: {
|
|
1833
|
+
readonly id: F.Id<'stock.lot.line'>;
|
|
1834
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1835
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1836
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1837
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1838
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1839
|
+
readonly picking: F.Many2one<'stock.picking', { readonly required: true }>;
|
|
1840
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1841
|
+
readonly lot: F.Many2one<'stock.lot'>;
|
|
1842
|
+
readonly lotName: F.Char;
|
|
1843
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1844
|
+
};
|
|
1845
|
+
readonly methods: StockLotLineMethods;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/** Methods of `stock.lot.line`: declared ones and transitions. */
|
|
1849
|
+
export interface StockLotLineMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.lot.line'> {
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/** `stock.move` (owner: stock; extended by: stock_account, mrp_account). */
|
|
1853
|
+
export interface StockMove {
|
|
1854
|
+
readonly name: 'stock.move';
|
|
1855
|
+
readonly fields: {
|
|
1856
|
+
readonly id: F.Id<'stock.move'>;
|
|
1857
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1858
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1859
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1860
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1861
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1862
|
+
readonly picking: F.Many2one<'stock.picking', { readonly required: true }>;
|
|
1863
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1864
|
+
readonly name: F.Char;
|
|
1865
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1866
|
+
readonly uom: F.Many2one<'uom.uom'>;
|
|
1867
|
+
readonly productQty: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1868
|
+
readonly quantityDone: F.Decimal;
|
|
1869
|
+
readonly doneQty: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1870
|
+
readonly restrictLot: F.Many2one<'stock.lot'>;
|
|
1871
|
+
readonly reservations: F.One2many<'stock.reservation', { readonly required: true }>;
|
|
1872
|
+
readonly reserved: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1873
|
+
};
|
|
1874
|
+
readonly methods: StockMoveMethods;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/** Methods of `stock.move`: declared ones and transitions. */
|
|
1878
|
+
export interface StockMoveMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.move'>, F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'stock.move'>, F.Methods<typeof import('../module.js').mrpAccountShutro, 'stock.move'> {
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/** `stock.picking` (owner: stock; extended by: stock_account, stock_account, mrp_account). */
|
|
1882
|
+
export interface StockPicking {
|
|
1883
|
+
readonly name: 'stock.picking';
|
|
1884
|
+
readonly fields: {
|
|
1885
|
+
readonly id: F.Id<'stock.picking'>;
|
|
1886
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1887
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1888
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1889
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1890
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1891
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1892
|
+
readonly name: F.Char<{ readonly required: true; readonly readonly: true; readonly sequence: true }>;
|
|
1893
|
+
readonly kind: F.Selection<'receipt' | 'delivery' | 'internal' | 'adjustment' | 'production', { readonly required: true; readonly default: true }>;
|
|
1894
|
+
readonly partner: F.Many2one<'res.partner'>;
|
|
1895
|
+
readonly warehouse: F.Many2one<'stock.warehouse'>;
|
|
1896
|
+
readonly source: F.Many2one<'stock.location', { readonly required: true }>;
|
|
1897
|
+
readonly destination: F.Many2one<'stock.location', { readonly required: true }>;
|
|
1898
|
+
readonly scheduledDate: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
1899
|
+
readonly doneDate: F.DateOnly;
|
|
1900
|
+
readonly origin: F.Char;
|
|
1901
|
+
readonly note: F.Text;
|
|
1902
|
+
readonly moves: F.One2many<'stock.move', { readonly required: true }>;
|
|
1903
|
+
readonly lotLines: F.One2many<'stock.lot.line', { readonly required: true }>;
|
|
1904
|
+
readonly count: F.Many2one<'stock.count'>;
|
|
1905
|
+
readonly backorderOf: F.Many2one<'stock.picking'>;
|
|
1906
|
+
readonly backorders: F.One2many<'stock.picking', { readonly required: true }>;
|
|
1907
|
+
readonly availability: F.Selection<'none' | 'partial' | 'full', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1908
|
+
readonly status: F.Selection<'draft' | 'waiting' | 'ready' | 'done' | 'cancelled', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1909
|
+
readonly state: F.State<'draft' | 'confirmed' | 'done' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
1910
|
+
readonly valuationLayers: F.One2many<'stock.valuation.layer', { readonly required: true }>; // stock_account
|
|
1911
|
+
};
|
|
1912
|
+
readonly methods: StockPickingMethods;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/** Methods of `stock.picking`: declared ones and transitions. */
|
|
1916
|
+
export interface StockPickingMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.picking'>, F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'stock.picking'>, F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'stock.picking'>, F.Methods<typeof import('../module.js').mrpAccountShutro, 'stock.picking'> {
|
|
1917
|
+
readonly 'cancel': () => Promise<void>;
|
|
1918
|
+
readonly 'confirm': () => Promise<void>;
|
|
1919
|
+
readonly 'redraft': () => Promise<void>;
|
|
1920
|
+
readonly 'reserve': () => Promise<void>;
|
|
1921
|
+
readonly 'unreserve': () => Promise<void>;
|
|
1922
|
+
readonly 'validate': () => Promise<void>;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/** `stock.quant` (owner: stock). */
|
|
1926
|
+
export interface StockQuant {
|
|
1927
|
+
readonly name: 'stock.quant';
|
|
1928
|
+
readonly fields: {
|
|
1929
|
+
readonly id: F.Id<'stock.quant'>;
|
|
1930
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1931
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1932
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1933
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1934
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1935
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1936
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1937
|
+
readonly location: F.Many2one<'stock.location', { readonly required: true }>;
|
|
1938
|
+
readonly lot: F.Many2one<'stock.lot'>;
|
|
1939
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1940
|
+
readonly reservations: F.One2many<'stock.reservation', { readonly required: true }>;
|
|
1941
|
+
readonly reserved: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1942
|
+
readonly available: F.Decimal<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1943
|
+
};
|
|
1944
|
+
readonly methods: StockQuantMethods;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
/** Methods of `stock.quant`: declared ones and transitions. */
|
|
1948
|
+
export interface StockQuantMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.quant'> {
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
/** `stock.reservation` (owner: stock). */
|
|
1952
|
+
export interface StockReservation {
|
|
1953
|
+
readonly name: 'stock.reservation';
|
|
1954
|
+
readonly fields: {
|
|
1955
|
+
readonly id: F.Id<'stock.reservation'>;
|
|
1956
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1957
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1958
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1959
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1960
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1961
|
+
readonly move: F.Many2one<'stock.move', { readonly required: true }>;
|
|
1962
|
+
readonly quant: F.Many2one<'stock.quant', { readonly required: true }>;
|
|
1963
|
+
readonly quantity: F.Decimal<{ readonly required: true }>;
|
|
1964
|
+
readonly label: F.Char<{ readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
1965
|
+
};
|
|
1966
|
+
readonly methods: StockReservationMethods;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
/** Methods of `stock.reservation`: declared ones and transitions. */
|
|
1970
|
+
export interface StockReservationMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.reservation'> {
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
/** `stock.scrap` (owner: stock; extended by: mrp). */
|
|
1974
|
+
export interface StockScrap {
|
|
1975
|
+
readonly name: 'stock.scrap';
|
|
1976
|
+
readonly fields: {
|
|
1977
|
+
readonly id: F.Id<'stock.scrap'>;
|
|
1978
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1979
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1980
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1981
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1982
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1983
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1984
|
+
readonly name: F.Char<{ readonly required: true; readonly readonly: true; readonly sequence: true }>;
|
|
1985
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
1986
|
+
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
1987
|
+
readonly location: F.Many2one<'stock.location'>;
|
|
1988
|
+
readonly lot: F.Many2one<'stock.lot'>;
|
|
1989
|
+
readonly reason: F.Selection<'damaged' | 'defect' | 'expired' | 'spill' | 'other', { readonly required: true; readonly default: true }>;
|
|
1990
|
+
readonly note: F.Text;
|
|
1991
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
1992
|
+
readonly picking: F.Many2one<'stock.picking'>;
|
|
1993
|
+
readonly state: F.State<'draft' | 'done' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
1994
|
+
readonly production: F.Many2one<'mrp.production'>; // mrp
|
|
1995
|
+
};
|
|
1996
|
+
readonly methods: StockScrapMethods;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
/** Methods of `stock.scrap`: declared ones and transitions. */
|
|
2000
|
+
export interface StockScrapMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.scrap'>, F.Methods<typeof import('../../mrp/index.js').mrpShutro, 'stock.scrap'> {
|
|
2001
|
+
readonly 'cancel': () => Promise<void>;
|
|
2002
|
+
readonly 'validate': () => Promise<void>;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
/** `stock.valuation.layer` (owner: stock_account). */
|
|
2006
|
+
export interface StockValuationLayer {
|
|
2007
|
+
readonly name: 'stock.valuation.layer';
|
|
2008
|
+
readonly fields: {
|
|
2009
|
+
readonly id: F.Id<'stock.valuation.layer'>;
|
|
2010
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2011
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2012
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2013
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2014
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
2015
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
2016
|
+
readonly product: F.Many2one<'product.product', { readonly required: true }>;
|
|
2017
|
+
readonly picking: F.Many2one<'stock.picking'>;
|
|
2018
|
+
readonly move: F.Many2one<'stock.move'>;
|
|
2019
|
+
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
2020
|
+
readonly quantity: F.Decimal<{ readonly required: true }>;
|
|
2021
|
+
readonly unitCost: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
2022
|
+
readonly value: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
2023
|
+
readonly remainingQty: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
2024
|
+
readonly remainingValue: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
2025
|
+
readonly accountMove: F.Many2one<'account.move'>;
|
|
2026
|
+
};
|
|
2027
|
+
readonly methods: StockValuationLayerMethods;
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
/** Methods of `stock.valuation.layer`: declared ones and transitions. */
|
|
2031
|
+
export interface StockValuationLayerMethods extends F.Methods<typeof import('../../stock_account/index.js').stockAccountShutro, 'stock.valuation.layer'> {
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
/** `stock.warehouse` (owner: stock). */
|
|
2035
|
+
export interface StockWarehouse {
|
|
2036
|
+
readonly name: 'stock.warehouse';
|
|
2037
|
+
readonly fields: {
|
|
2038
|
+
readonly id: F.Id<'stock.warehouse'>;
|
|
2039
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2040
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2041
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2042
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2043
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
2044
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
2045
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
2046
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
2047
|
+
readonly code: F.Char<{ readonly required: true }>;
|
|
2048
|
+
readonly locations: F.One2many<'stock.location', { readonly required: true }>;
|
|
2049
|
+
readonly address: F.Many2one<'res.partner'>;
|
|
2050
|
+
};
|
|
2051
|
+
readonly methods: StockWarehouseMethods;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
/** Methods of `stock.warehouse`: declared ones and transitions. */
|
|
2055
|
+
export interface StockWarehouseMethods extends F.Methods<typeof import('../../stock/index.js').stockShutro, 'stock.warehouse'> {
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
/** `storage.attachment` (owner: storage). */
|
|
2059
|
+
export interface StorageAttachment {
|
|
2060
|
+
readonly name: 'storage.attachment';
|
|
2061
|
+
readonly fields: {
|
|
2062
|
+
readonly id: F.Id<'storage.attachment'>;
|
|
2063
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2064
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2065
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2066
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2067
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
2068
|
+
readonly name: F.Char<{ readonly required: true }>;
|
|
2069
|
+
readonly mime: F.Char<{ readonly required: true }>;
|
|
2070
|
+
readonly size: F.Integer<{ readonly required: true }>;
|
|
2071
|
+
readonly sha256: F.Char<{ readonly required: true }>;
|
|
2072
|
+
readonly key: F.Char<{ readonly required: true }>;
|
|
2073
|
+
readonly resModel: F.Char<{ readonly required: true }>;
|
|
2074
|
+
readonly resId: F.Integer<{ readonly required: true }>;
|
|
2075
|
+
readonly variantOf: F.Many2one<'storage.attachment'>;
|
|
2076
|
+
readonly width: F.Integer;
|
|
2077
|
+
};
|
|
2078
|
+
readonly methods: StorageAttachmentMethods;
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
/** Methods of `storage.attachment`: declared ones and transitions. */
|
|
2082
|
+
export interface StorageAttachmentMethods extends F.Methods<typeof import('../../storage/index.js').storageShutro, 'storage.attachment'> {
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/** `uom.uom` (owner: product). */
|
|
2086
|
+
export interface UomUom {
|
|
2087
|
+
readonly name: 'uom.uom';
|
|
2088
|
+
readonly fields: {
|
|
2089
|
+
readonly id: F.Id<'uom.uom'>;
|
|
2090
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2091
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
2092
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2093
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
2094
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
2095
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
2096
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
2097
|
+
readonly category: F.Selection<'unit' | 'time' | 'weight' | 'length' | 'volume', { readonly required: true; readonly default: true }>;
|
|
2098
|
+
readonly ratio: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
2099
|
+
readonly rounding: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
2100
|
+
};
|
|
2101
|
+
readonly methods: UomUomMethods;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
/** Methods of `uom.uom`: declared ones and transitions. */
|
|
2105
|
+
export interface UomUomMethods extends F.Methods<typeof import('../../product/index.js').productShutro, 'uom.uom'> {
|
|
2106
|
+
}
|