mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-22 15:22:04 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -1,5 +1,3 @@
|
|||
/** @odoo-module */
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry
|
||||
|
|
@ -10,10 +8,11 @@ registry
|
|||
.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"],
|
||||
], {});
|
||||
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