mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-20 10:42:06 +02:00
Initial commit: Accounting packages
This commit is contained in:
commit
4ef34c2317
2661 changed files with 1709616 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
/** @odoo-module */
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry
|
||||
.category("mock_server")
|
||||
.add("account.account/spreadsheet_fetch_debit_credit", function (route, args) {
|
||||
return new Array(args.args[0].length).fill({ credit: 0, debit: 0 });
|
||||
})
|
||||
.add("account.account/get_account_group", function (route, args, performRPC) {
|
||||
const accountTypes = args.args[0];
|
||||
const data = accountTypes.map((accountType) => {
|
||||
const records = this.mockSearchRead("account.account", [
|
||||
[["account_type", "=", accountType]],
|
||||
["code"],
|
||||
], {});
|
||||
return records.map((record) => record.code);
|
||||
});
|
||||
return data;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue