mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-18 17:22:08 +02:00
Initial commit: Project packages
This commit is contained in:
commit
89613c97b0
753 changed files with 496325 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
/** @odoo-module */
|
||||
|
||||
import { getFixture } from "@web/../tests/helpers/utils";
|
||||
import { makeView, setupViewRegistries } from "@web/../tests/views/helpers";
|
||||
|
||||
let makeViewParams, target;
|
||||
|
||||
QUnit.module("Project", (hooks) => {
|
||||
hooks.beforeEach(() => {
|
||||
makeViewParams = {
|
||||
type: "form",
|
||||
resModel: "project.project",
|
||||
serverData: {
|
||||
models: {
|
||||
"project.project": {
|
||||
fields: {
|
||||
id: { string: "Id", type: "integer" },
|
||||
},
|
||||
records: [{ id: 1, display_name: "First record" }],
|
||||
},
|
||||
},
|
||||
},
|
||||
arch: `<form js_class="project_form"><field name="display_name"/></form>`,
|
||||
};
|
||||
target = getFixture();
|
||||
setupViewRegistries();
|
||||
});
|
||||
QUnit.module("Form");
|
||||
QUnit.test("project form view", async function (assert) {
|
||||
await makeView(makeViewParams);
|
||||
assert.containsOnce(target, ".o_form_view");
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue