初始提交
This commit is contained in:
24
ai/static/tests/mock_server/mock_models/res_partner.js
Normal file
24
ai/static/tests/mock_server/mock_models/res_partner.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import { fields, models } from "@web/../tests/web_test_helpers";
|
||||
|
||||
export class Partner extends models.Model {
|
||||
name = fields.Char();
|
||||
foo = fields.Char();
|
||||
|
||||
_records = [{ id: 1, name: "dummy record", foo: "yop" }];
|
||||
_views = {
|
||||
kanban: `
|
||||
<kanban>
|
||||
<templates>
|
||||
<t t-name="card">
|
||||
<field name="foo"/>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
`,
|
||||
list: `
|
||||
<list>
|
||||
<field name="foo"/>
|
||||
</list>
|
||||
`,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user