shutro-erp 0.2.0 → 0.3.0
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/README.md +17 -10
- package/dist/account_portal/.kosh/bindings.d.ts +22 -0
- package/dist/account_portal/.kosh/bindings.js +15 -0
- package/dist/account_portal/.kosh/schema.d.ts +1350 -0
- package/dist/account_portal/index.d.ts +3 -0
- package/dist/account_portal/index.js +73 -0
- package/dist/account_portal/module.d.ts +5983 -0
- package/dist/account_portal/module.js +18 -0
- package/dist/accounting/.kosh/bindings.js +1 -1
- package/dist/accounting/.kosh/schema.d.ts +142 -9
- package/dist/accounting/chart.d.ts +40 -8
- package/dist/accounting/chart.js +124 -30
- package/dist/accounting/closing.d.ts +6 -1
- package/dist/accounting/closing.js +5 -1
- package/dist/accounting/demo.js +6 -5
- package/dist/accounting/index.d.ts +3 -3
- package/dist/accounting/index.js +200 -23
- package/dist/accounting/module.d.ts +3326 -1086
- package/dist/accounting/module.js +408 -66
- package/dist/accounting/payments.d.ts +25 -0
- package/dist/accounting/payments.js +96 -4
- package/dist/accounting/web/RegisterPayment.d.ts +3 -2
- package/dist/accounting/web/RegisterPayment.js +39 -6
- package/dist/accounting/web/SettingsPage.js +5 -1
- package/dist/accounting/web/messages.js +10 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/init.d.ts +5 -0
- package/dist/cli/init.js +195 -53
- package/dist/cli/launch.d.ts +16 -0
- package/dist/cli/launch.js +138 -0
- package/dist/cli/prompt.d.ts +35 -0
- package/dist/cli/prompt.js +46 -0
- package/dist/cli/templates.d.ts +11 -3
- package/dist/cli/templates.js +32 -7
- package/dist/cli/tui.d.ts +7 -0
- package/dist/cli/tui.js +254 -0
- package/dist/cli/ui.d.ts +25 -5
- package/dist/cli/ui.js +49 -9
- package/dist/contacts/.kosh/bindings.js +1 -1
- package/dist/contacts/.kosh/schema.d.ts +3 -1
- package/dist/contacts/index.js +24 -1
- package/dist/contacts/module.d.ts +42 -0
- package/dist/contacts/module.js +3 -1
- package/dist/import/convert.d.ts +55 -0
- package/dist/import/convert.js +224 -0
- package/dist/import/csv.d.ts +28 -0
- package/dist/import/csv.js +115 -0
- package/dist/import/index.d.ts +33 -0
- package/dist/import/index.js +60 -0
- package/dist/import/mapping.d.ts +15 -0
- package/dist/import/mapping.js +33 -0
- package/dist/import/match.d.ts +24 -0
- package/dist/import/match.js +60 -0
- package/dist/import/models.d.ts +2 -0
- package/dist/import/models.js +102 -0
- package/dist/import/routes.d.ts +13 -0
- package/dist/import/routes.js +392 -0
- package/dist/import/run.d.ts +131 -0
- package/dist/import/run.js +568 -0
- package/dist/import/service.d.ts +153 -0
- package/dist/import/service.js +367 -0
- package/dist/import/web/ImportButton.d.ts +7 -0
- package/dist/import/web/ImportButton.js +31 -0
- package/dist/import/web/ImportWizard.d.ts +75 -0
- package/dist/import/web/ImportWizard.js +217 -0
- package/dist/import/web/index.d.ts +13 -0
- package/dist/import/web/index.js +18 -0
- package/dist/import/web/messages.d.ts +2 -0
- package/dist/import/web/messages.js +139 -0
- package/dist/import/worker.d.ts +3 -0
- package/dist/import/worker.js +52 -0
- package/dist/import/xlsx.d.ts +20 -0
- package/dist/import/xlsx.js +192 -0
- package/dist/l10n_bd/.kosh/bindings.d.ts +22 -0
- package/dist/l10n_bd/.kosh/bindings.js +15 -0
- package/dist/l10n_bd/.kosh/schema.d.ts +1281 -0
- package/dist/l10n_bd/documents.d.ts +8 -0
- package/dist/l10n_bd/documents.js +183 -0
- package/dist/l10n_bd/index.d.ts +8 -0
- package/dist/l10n_bd/index.js +156 -0
- package/dist/l10n_bd/module.d.ts +5705 -0
- package/dist/l10n_bd/module.js +163 -0
- package/dist/l10n_bd/mushak.d.ts +67 -0
- package/dist/l10n_bd/mushak.js +139 -0
- package/dist/l10n_bd/routes.d.ts +3 -0
- package/dist/l10n_bd/routes.js +205 -0
- package/dist/l10n_bd/web/MushakPage.d.ts +7 -0
- package/dist/l10n_bd/web/MushakPage.js +53 -0
- package/dist/l10n_bd/web/index.d.ts +13 -0
- package/dist/l10n_bd/web/index.js +18 -0
- package/dist/l10n_bd/web/messages.d.ts +2 -0
- package/dist/l10n_bd/web/messages.js +101 -0
- package/dist/l10n_in/.kosh/bindings.d.ts +22 -0
- package/dist/l10n_in/.kosh/bindings.js +15 -0
- package/dist/l10n_in/.kosh/schema.d.ts +1343 -0
- package/dist/l10n_in/documents.d.ts +8 -0
- package/dist/l10n_in/documents.js +114 -0
- package/dist/l10n_in/einvoice.d.ts +253 -0
- package/dist/l10n_in/einvoice.js +485 -0
- package/dist/l10n_in/gstr.d.ts +109 -0
- package/dist/l10n_in/gstr.js +430 -0
- package/dist/l10n_in/index.d.ts +20 -0
- package/dist/l10n_in/index.js +232 -0
- package/dist/l10n_in/module.d.ts +7823 -0
- package/dist/l10n_in/module.js +427 -0
- package/dist/l10n_in/routes-einvoice.d.ts +15 -0
- package/dist/l10n_in/routes-einvoice.js +124 -0
- package/dist/l10n_in/routes.d.ts +17 -0
- package/dist/l10n_in/routes.js +282 -0
- package/dist/l10n_in/web/EInvoicePanel.d.ts +8 -0
- package/dist/l10n_in/web/EInvoicePanel.js +63 -0
- package/dist/l10n_in/web/GstPage.d.ts +7 -0
- package/dist/l10n_in/web/GstPage.js +57 -0
- package/dist/l10n_in/web/GstSettings.d.ts +10 -0
- package/dist/l10n_in/web/GstSettings.js +36 -0
- package/dist/l10n_in/web/index.d.ts +15 -0
- package/dist/l10n_in/web/index.js +22 -0
- package/dist/l10n_in/web/messages.d.ts +2 -0
- package/dist/l10n_in/web/messages.js +166 -0
- package/dist/modules-sdk/demo.d.ts +2 -0
- package/dist/modules-sdk/demo.js +7 -3
- package/dist/modules-sdk/index.d.ts +2 -2
- package/dist/modules-sdk/index.js +1 -1
- package/dist/modules-sdk/manifest.d.ts +132 -0
- package/dist/modules-sdk/manifest.js +22 -0
- package/dist/notify/inbox.js +21 -0
- package/dist/notify/messages.js +4 -0
- package/dist/notify/models.d.ts +1 -1
- package/dist/notify/models.js +2 -0
- package/dist/notify/web/messages.js +4 -0
- package/dist/portal/.kosh/bindings.d.ts +22 -0
- package/dist/portal/.kosh/bindings.js +15 -0
- package/dist/portal/.kosh/schema.d.ts +346 -0
- package/dist/portal/announce.d.ts +16 -0
- package/dist/portal/announce.js +117 -0
- package/dist/portal/documents.d.ts +17 -0
- package/dist/portal/documents.js +61 -0
- package/dist/portal/index.d.ts +20 -0
- package/dist/portal/index.js +65 -0
- package/dist/portal/module.d.ts +1405 -0
- package/dist/portal/module.js +84 -0
- package/dist/portal/routes-documents.d.ts +2 -0
- package/dist/portal/routes-documents.js +391 -0
- package/dist/portal/routes.d.ts +13 -0
- package/dist/portal/routes.js +313 -0
- package/dist/portal/rules.d.ts +11 -0
- package/dist/portal/rules.js +25 -0
- package/dist/portal/web/PortalAccess.d.ts +8 -0
- package/dist/portal/web/PortalAccess.js +66 -0
- package/dist/portal/web/index.d.ts +12 -0
- package/dist/portal/web/index.js +17 -0
- package/dist/portal/web/messages.d.ts +2 -0
- package/dist/portal/web/messages.js +33 -0
- package/dist/product/.kosh/bindings.js +1 -1
- package/dist/product/.kosh/schema.d.ts +12 -3
- package/dist/product/demo.js +6 -5
- package/dist/product/index.d.ts +1 -0
- package/dist/product/index.js +17 -4
- package/dist/product/module.d.ts +346 -14
- package/dist/product/module.js +48 -18
- package/dist/product/taxes.d.ts +59 -0
- package/dist/product/taxes.js +61 -0
- package/dist/project/.kosh/bindings.js +1 -1
- package/dist/project/.kosh/schema.d.ts +3 -1
- package/dist/project/module.d.ts +20 -0
- package/dist/project_portal/.kosh/bindings.d.ts +22 -0
- package/dist/project_portal/.kosh/bindings.js +15 -0
- package/dist/project_portal/.kosh/schema.d.ts +671 -0
- package/dist/project_portal/index.d.ts +9 -0
- package/dist/project_portal/index.js +42 -0
- package/dist/project_portal/module.d.ts +2142 -0
- package/dist/project_portal/module.js +22 -0
- package/dist/purchase/.kosh/bindings.js +1 -1
- package/dist/purchase/.kosh/schema.d.ts +15 -4
- package/dist/purchase/demo.js +3 -3
- package/dist/purchase/index.js +1 -1
- package/dist/purchase/module.d.ts +232 -8
- package/dist/purchase/module.js +51 -9
- package/dist/purchase_account/.kosh/bindings.js +1 -1
- package/dist/purchase_account/.kosh/schema.d.ts +144 -10
- package/dist/purchase_account/module.d.ts +2008 -641
- package/dist/purchase_account/module.js +2 -2
- package/dist/purchase_portal/.kosh/bindings.d.ts +22 -0
- package/dist/purchase_portal/.kosh/bindings.js +15 -0
- package/dist/purchase_portal/.kosh/schema.d.ts +822 -0
- package/dist/purchase_portal/index.d.ts +9 -0
- package/dist/purchase_portal/index.js +53 -0
- package/dist/purchase_portal/module.d.ts +2758 -0
- package/dist/purchase_portal/module.js +18 -0
- package/dist/reporting/documents.js +20 -3
- package/dist/reporting/index.d.ts +1 -0
- package/dist/reporting/index.js +1 -0
- package/dist/reporting/routes-documents.js +9 -2
- package/dist/reporting/words.d.ts +11 -0
- package/dist/reporting/words.js +229 -0
- package/dist/sale_account/.kosh/bindings.js +1 -1
- package/dist/sale_account/.kosh/schema.d.ts +144 -10
- package/dist/sale_account/module.d.ts +2008 -641
- package/dist/sale_account/module.js +3 -3
- package/dist/sale_portal/.kosh/bindings.d.ts +22 -0
- package/dist/sale_portal/.kosh/bindings.js +15 -0
- package/dist/sale_portal/.kosh/schema.d.ts +736 -0
- package/dist/sale_portal/index.d.ts +9 -0
- package/dist/sale_portal/index.js +71 -0
- package/dist/sale_portal/module.d.ts +2718 -0
- package/dist/sale_portal/module.js +19 -0
- package/dist/sale_project/.kosh/bindings.js +1 -1
- package/dist/sale_project/.kosh/schema.d.ts +15 -4
- package/dist/sale_project/module.d.ts +390 -10
- package/dist/sales/.kosh/bindings.js +1 -1
- package/dist/sales/.kosh/schema.d.ts +15 -4
- package/dist/sales/demo.js +3 -3
- package/dist/sales/index.js +67 -1
- package/dist/sales/module.d.ts +232 -8
- package/dist/sales/module.js +51 -12
- package/dist/server/auth/base.js +2 -0
- package/dist/server/auth/service.d.ts +2 -0
- package/dist/server/auth/service.js +7 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/server.js +26 -1
- package/dist/ui/api.d.ts +2 -0
- package/dist/ui/app.js +1 -1
- package/dist/ui/context.d.ts +3 -1
- package/dist/ui/context.js +2 -2
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/lib/format.d.ts +2 -0
- package/dist/ui/lib/format.js +3 -1
- package/dist/ui/views/FormView.js +19 -6
- package/package.json +50 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash:
|
|
1
|
+
// GENERATED by `pnpm generate:models` (Shutro’s generator). Do not edit. definitions-hash: 3208f1c12068264a
|
|
2
2
|
// Schema view of module `purchase_account` (RFC 0002 §7.7): the models it owns or depends on, with the extensions it can see.
|
|
3
3
|
import type { F } from '../../server/orm.js';
|
|
4
4
|
|
|
@@ -14,7 +14,10 @@ export interface SchemaView {
|
|
|
14
14
|
readonly 'account.payment': AccountPayment;
|
|
15
15
|
readonly 'account.payment.term': AccountPaymentTerm;
|
|
16
16
|
readonly 'account.payment.term.line': AccountPaymentTermLine;
|
|
17
|
+
readonly 'account.payment.withholding': AccountPaymentWithholding;
|
|
17
18
|
readonly 'account.tax': AccountTax;
|
|
19
|
+
readonly 'account.tax.component': AccountTaxComponent;
|
|
20
|
+
readonly 'account.withholding': AccountWithholding;
|
|
18
21
|
readonly 'approval.level': ApprovalLevel;
|
|
19
22
|
readonly 'approval.policy': ApprovalPolicy;
|
|
20
23
|
readonly 'approval.request': ApprovalRequest;
|
|
@@ -40,6 +43,7 @@ export interface SchemaView {
|
|
|
40
43
|
readonly 'report.schedule': ReportSchedule;
|
|
41
44
|
readonly 'report.spreadsheet': ReportSpreadsheet;
|
|
42
45
|
readonly 'report.template': ReportTemplate;
|
|
46
|
+
readonly 'res.bank.account': ResBankAccount;
|
|
43
47
|
readonly 'res.company': ResCompany;
|
|
44
48
|
readonly 'res.currency': ResCurrency;
|
|
45
49
|
readonly 'res.currency.rate': ResCurrencyRate;
|
|
@@ -165,7 +169,7 @@ export interface AccountMove {
|
|
|
165
169
|
readonly numberGeneral: F.Char<{ readonly readonly: true; readonly sequence: true }>;
|
|
166
170
|
readonly journal: F.Many2one<'account.journal', { readonly required: true }>;
|
|
167
171
|
readonly date: F.DateOnly<{ readonly required: true; readonly default: true }>;
|
|
168
|
-
readonly kind: F.Selection<'entry' | 'out_invoice' | 'out_refund' | 'in_invoice' | 'in_refund', { readonly required: true; readonly default: true }>;
|
|
172
|
+
readonly kind: F.Selection<'entry' | 'out_invoice' | 'out_refund' | 'in_invoice' | 'in_refund' | 'out_debit' | 'in_debit', { readonly required: true; readonly default: true }>;
|
|
169
173
|
readonly partner: F.Many2one<'res.partner'>;
|
|
170
174
|
readonly ref: F.Char;
|
|
171
175
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
@@ -177,6 +181,7 @@ export interface AccountMove {
|
|
|
177
181
|
readonly amountDebit: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
178
182
|
readonly amountCredit: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
179
183
|
readonly dateDue: F.DateOnly;
|
|
184
|
+
readonly paymentDetails: F.Text<{ readonly readonly: true; readonly compute: true }>;
|
|
180
185
|
readonly paymentTerm: F.Many2one<'account.payment.term'>;
|
|
181
186
|
readonly invoiceOrigin: F.Char;
|
|
182
187
|
readonly amountUntaxed: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
@@ -189,6 +194,8 @@ export interface AccountMove {
|
|
|
189
194
|
readonly postedAt: F.Datetime;
|
|
190
195
|
readonly postedTx: F.Char;
|
|
191
196
|
readonly reversalOf: F.Many2one<'account.move'>;
|
|
197
|
+
readonly debitOf: F.Many2one<'account.move'>;
|
|
198
|
+
readonly placeOfSupply: F.Char;
|
|
192
199
|
readonly reversedBy: F.Many2one<'account.move'>;
|
|
193
200
|
readonly purchaseOrder: F.Many2one<'purchase.order'>; // purchase_account
|
|
194
201
|
};
|
|
@@ -231,10 +238,14 @@ export interface AccountMoveLine {
|
|
|
231
238
|
readonly quantity: F.Decimal<{ readonly default: true }>;
|
|
232
239
|
readonly priceUnit: F.Decimal<{ readonly default: true }>;
|
|
233
240
|
readonly discount: F.Decimal<{ readonly default: true }>;
|
|
234
|
-
readonly
|
|
241
|
+
readonly taxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
242
|
+
readonly tax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
235
243
|
readonly subtotal: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
236
244
|
readonly taxAmount: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
237
245
|
readonly taxLineOf: F.Many2one<'account.tax'>;
|
|
246
|
+
readonly taxComponent: F.Many2one<'account.tax.component'>;
|
|
247
|
+
readonly taxReverseCharge: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
248
|
+
readonly taxBase: F.Monetary<'currency'>;
|
|
238
249
|
readonly balance: F.Monetary<'companyCurrency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
239
250
|
readonly posted: F.Bool<{ readonly required: true; readonly readonly: true; readonly default: true; readonly compute: true; readonly store: true }>;
|
|
240
251
|
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 }>;
|
|
@@ -298,6 +309,8 @@ export interface AccountPayment {
|
|
|
298
309
|
readonly amount: F.Monetary<'currency', { readonly required: true }>;
|
|
299
310
|
readonly memo: F.Char;
|
|
300
311
|
readonly documents: F.Many2many<'account.move', { readonly required: true }>;
|
|
312
|
+
readonly withholdings: F.One2many<'account.payment.withholding', { readonly required: true }>;
|
|
313
|
+
readonly amountWithheld: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
301
314
|
readonly move: F.Many2one<'account.move'>;
|
|
302
315
|
readonly state: F.State<'draft' | 'posted' | 'cancel', { readonly required: true; readonly readonly: true; readonly default: true }>;
|
|
303
316
|
};
|
|
@@ -354,6 +367,29 @@ export interface AccountPaymentTermLine {
|
|
|
354
367
|
export interface AccountPaymentTermLineMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.payment.term.line'> {
|
|
355
368
|
}
|
|
356
369
|
|
|
370
|
+
/** `account.payment.withholding` (owner: accounting). */
|
|
371
|
+
export interface AccountPaymentWithholding {
|
|
372
|
+
readonly name: 'account.payment.withholding';
|
|
373
|
+
readonly fields: {
|
|
374
|
+
readonly id: F.Id<'account.payment.withholding'>;
|
|
375
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
376
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
377
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
378
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
379
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
380
|
+
readonly payment: F.Many2one<'account.payment', { readonly required: true }>;
|
|
381
|
+
readonly withholding: F.Many2one<'account.withholding', { readonly required: true }>;
|
|
382
|
+
readonly currency: F.Many2one<'res.currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
383
|
+
readonly base: F.Monetary<'currency'>;
|
|
384
|
+
readonly amount: F.Monetary<'currency', { readonly required: true }>;
|
|
385
|
+
};
|
|
386
|
+
readonly methods: AccountPaymentWithholdingMethods;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** Methods of `account.payment.withholding`: declared ones and transitions. */
|
|
390
|
+
export interface AccountPaymentWithholdingMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.payment.withholding'> {
|
|
391
|
+
}
|
|
392
|
+
|
|
357
393
|
/** `account.tax` (owner: product; extended by: accounting). */
|
|
358
394
|
export interface AccountTax {
|
|
359
395
|
readonly name: 'account.tax';
|
|
@@ -367,10 +403,17 @@ export interface AccountTax {
|
|
|
367
403
|
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
368
404
|
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
369
405
|
readonly use: F.Selection<'sale' | 'purchase', { readonly required: true; readonly default: true }>;
|
|
406
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
407
|
+
readonly amountType: F.Selection<'percent' | 'fixed', { readonly required: true; readonly default: true }>;
|
|
370
408
|
readonly rate: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
409
|
+
readonly fixedAmount: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
410
|
+
readonly affectsBase: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
411
|
+
readonly priceIncluded: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
412
|
+
readonly reverseCharge: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
371
413
|
readonly account: F.Many2one<'account.account'>; // accounting
|
|
372
414
|
readonly refundAccount: F.Many2one<'account.account'>; // accounting
|
|
373
|
-
readonly
|
|
415
|
+
readonly reverseChargeAccount: F.Many2one<'account.account'>; // accounting
|
|
416
|
+
readonly components: F.One2many<'account.tax.component', { readonly required: true }>; // accounting
|
|
374
417
|
};
|
|
375
418
|
readonly methods: AccountTaxMethods;
|
|
376
419
|
}
|
|
@@ -379,6 +422,60 @@ export interface AccountTax {
|
|
|
379
422
|
export interface AccountTaxMethods extends F.Methods<typeof import('../../product/index.js').productShutro, 'account.tax'>, F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.tax'> {
|
|
380
423
|
}
|
|
381
424
|
|
|
425
|
+
/** `account.tax.component` (owner: accounting). */
|
|
426
|
+
export interface AccountTaxComponent {
|
|
427
|
+
readonly name: 'account.tax.component';
|
|
428
|
+
readonly fields: {
|
|
429
|
+
readonly id: F.Id<'account.tax.component'>;
|
|
430
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
431
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
432
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
433
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
434
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
435
|
+
readonly tax: F.Many2one<'account.tax', { readonly required: true }>;
|
|
436
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
437
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
438
|
+
readonly share: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
439
|
+
readonly scope: F.Selection<'always' | 'intra' | 'inter', { readonly required: true; readonly default: true }>;
|
|
440
|
+
readonly code: F.Char;
|
|
441
|
+
readonly account: F.Many2one<'account.account'>;
|
|
442
|
+
readonly refundAccount: F.Many2one<'account.account'>;
|
|
443
|
+
readonly reverseChargeAccount: F.Many2one<'account.account'>;
|
|
444
|
+
};
|
|
445
|
+
readonly methods: AccountTaxComponentMethods;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/** Methods of `account.tax.component`: declared ones and transitions. */
|
|
449
|
+
export interface AccountTaxComponentMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.tax.component'> {
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/** `account.withholding` (owner: accounting). */
|
|
453
|
+
export interface AccountWithholding {
|
|
454
|
+
readonly name: 'account.withholding';
|
|
455
|
+
readonly fields: {
|
|
456
|
+
readonly id: F.Id<'account.withholding'>;
|
|
457
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
458
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
459
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
460
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
461
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
462
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
463
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
464
|
+
readonly name: F.Char<{ readonly required: true; readonly translate: true }>;
|
|
465
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
466
|
+
readonly direction: F.Selection<'vendor' | 'customer', { readonly required: true; readonly default: true }>;
|
|
467
|
+
readonly base: F.Selection<'untaxed' | 'tax' | 'total', { readonly required: true; readonly default: true }>;
|
|
468
|
+
readonly rate: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
469
|
+
readonly threshold: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
470
|
+
readonly account: F.Many2one<'account.account', { readonly required: true }>;
|
|
471
|
+
};
|
|
472
|
+
readonly methods: AccountWithholdingMethods;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/** Methods of `account.withholding`: declared ones and transitions. */
|
|
476
|
+
export interface AccountWithholdingMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'account.withholding'> {
|
|
477
|
+
}
|
|
478
|
+
|
|
382
479
|
/** `approval.level` (owner: permissions). */
|
|
383
480
|
export interface ApprovalLevel {
|
|
384
481
|
readonly name: 'approval.level';
|
|
@@ -823,8 +920,10 @@ export interface ProductProduct {
|
|
|
823
920
|
readonly standardPrice: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
824
921
|
readonly saleOk: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
825
922
|
readonly purchaseOk: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
826
|
-
readonly
|
|
827
|
-
readonly
|
|
923
|
+
readonly taxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
924
|
+
readonly purchaseTaxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
925
|
+
readonly tax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
926
|
+
readonly purchaseTax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
828
927
|
readonly description: F.Text<{ readonly translate: true }>;
|
|
829
928
|
};
|
|
830
929
|
readonly methods: ProductProductMethods;
|
|
@@ -894,7 +993,8 @@ export interface PurchaseOrderLine {
|
|
|
894
993
|
readonly quantity: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
895
994
|
readonly uom: F.Many2one<'uom.uom'>;
|
|
896
995
|
readonly priceUnit: F.Decimal<{ readonly required: true; readonly default: true }>;
|
|
897
|
-
readonly
|
|
996
|
+
readonly taxes: F.Many2many<'account.tax', { readonly required: true }>;
|
|
997
|
+
readonly tax: F.Many2one<'account.tax', { readonly readonly: true }>;
|
|
898
998
|
readonly datePlanned: F.DateOnly;
|
|
899
999
|
readonly currency: F.Many2one<'res.currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
900
1000
|
readonly subtotal: F.Monetary<'currency', { readonly readonly: true; readonly compute: true; readonly store: true }>;
|
|
@@ -1032,6 +1132,34 @@ export interface ReportTemplate {
|
|
|
1032
1132
|
export interface ReportTemplateMethods extends F.Methods<typeof import('../../reporting/index.js').reportingShutro, 'report.template'> {
|
|
1033
1133
|
}
|
|
1034
1134
|
|
|
1135
|
+
/** `res.bank.account` (owner: accounting). */
|
|
1136
|
+
export interface ResBankAccount {
|
|
1137
|
+
readonly name: 'res.bank.account';
|
|
1138
|
+
readonly fields: {
|
|
1139
|
+
readonly id: F.Id<'res.bank.account'>;
|
|
1140
|
+
readonly createdAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1141
|
+
readonly updatedAt: F.Datetime<{ readonly required: true; readonly readonly: true }>;
|
|
1142
|
+
readonly createdBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1143
|
+
readonly updatedBy: F.Many2one<'res.users', { readonly readonly: true }>;
|
|
1144
|
+
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1145
|
+
readonly active: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1146
|
+
readonly company: F.Many2one<'res.company', { readonly required: true; readonly default: true }>;
|
|
1147
|
+
readonly sequence: F.Integer<{ readonly required: true; readonly default: true }>;
|
|
1148
|
+
readonly bank: F.Char<{ readonly required: true }>;
|
|
1149
|
+
readonly branch: F.Char;
|
|
1150
|
+
readonly number: F.Char<{ readonly required: true }>;
|
|
1151
|
+
readonly holder: F.Char;
|
|
1152
|
+
readonly routing: F.Char;
|
|
1153
|
+
readonly swift: F.Char;
|
|
1154
|
+
readonly currency: F.Many2one<'res.currency'>;
|
|
1155
|
+
};
|
|
1156
|
+
readonly methods: ResBankAccountMethods;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/** Methods of `res.bank.account`: declared ones and transitions. */
|
|
1160
|
+
export interface ResBankAccountMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.bank.account'> {
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1035
1163
|
/** `res.company` (owner: base; extended by: accounting). */
|
|
1036
1164
|
export interface ResCompany {
|
|
1037
1165
|
readonly name: 'res.company';
|
|
@@ -1044,7 +1172,11 @@ export interface ResCompany {
|
|
|
1044
1172
|
readonly displayName: F.Char<{ readonly required: true; readonly readonly: true; readonly compute: true }>;
|
|
1045
1173
|
readonly name: F.Char<{ readonly required: true }>;
|
|
1046
1174
|
readonly currency: F.Many2one<'res.currency', { readonly required: true }>;
|
|
1047
|
-
readonly
|
|
1175
|
+
readonly numberGrouping: F.Selection<'international' | 'lakh', { readonly required: true; readonly default: true }>;
|
|
1176
|
+
readonly fiscalYearStart: F.Integer<{ readonly required: true; readonly default: true }>; // accounting
|
|
1177
|
+
readonly chartTemplate: F.Char; // accounting
|
|
1178
|
+
readonly country: F.Char; // accounting
|
|
1179
|
+
readonly state: F.Char; // accounting
|
|
1048
1180
|
readonly lockDate: F.DateOnly; // accounting
|
|
1049
1181
|
readonly taxLockDate: F.DateOnly; // accounting
|
|
1050
1182
|
readonly accountReceivable: F.Many2one<'account.account'>; // accounting
|
|
@@ -1103,7 +1235,7 @@ export interface ResCurrencyRate {
|
|
|
1103
1235
|
export interface ResCurrencyRateMethods extends F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.currency.rate'> {
|
|
1104
1236
|
}
|
|
1105
1237
|
|
|
1106
|
-
/** `res.partner` (owner: contacts). */
|
|
1238
|
+
/** `res.partner` (owner: contacts; extended by: accounting). */
|
|
1107
1239
|
export interface ResPartner {
|
|
1108
1240
|
readonly name: 'res.partner';
|
|
1109
1241
|
readonly fields: {
|
|
@@ -1127,17 +1259,19 @@ export interface ResPartner {
|
|
|
1127
1259
|
readonly city: F.Char;
|
|
1128
1260
|
readonly zip: F.Char;
|
|
1129
1261
|
readonly country: F.Char;
|
|
1262
|
+
readonly state: F.Char;
|
|
1130
1263
|
readonly taxId: F.Char;
|
|
1131
1264
|
readonly isCustomer: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1132
1265
|
readonly isVendor: F.Bool<{ readonly required: true; readonly default: true }>;
|
|
1133
1266
|
readonly currency: F.Many2one<'res.currency'>;
|
|
1134
1267
|
readonly notes: F.Text;
|
|
1268
|
+
readonly withholdings: F.Many2many<'account.withholding', { readonly required: true }>; // accounting
|
|
1135
1269
|
};
|
|
1136
1270
|
readonly methods: ResPartnerMethods;
|
|
1137
1271
|
}
|
|
1138
1272
|
|
|
1139
1273
|
/** Methods of `res.partner`: declared ones and transitions. */
|
|
1140
|
-
export interface ResPartnerMethods extends F.Methods<typeof import('../../contacts/index.js').contactsShutro, 'res.partner'> {
|
|
1274
|
+
export interface ResPartnerMethods extends F.Methods<typeof import('../../contacts/index.js').contactsShutro, 'res.partner'>, F.Methods<typeof import('../../accounting/index.js').accountingShutro, 'res.partner'> {
|
|
1141
1275
|
}
|
|
1142
1276
|
|
|
1143
1277
|
/** `res.users` (owner: base). */
|