[IMP] bus, mail: make test data more consistent
In preparation of discuss refactoring. closes odoo/odoo#115047 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -39,5 +39,5 @@ insertRecords('res.users', [
|
||||
insertRecords('res.partner', [
|
||||
{ active: false, display_name: "Public user", id: TEST_USER_IDS.publicPartnerId, is_public: true },
|
||||
{ display_name: "Your Company, Mitchell Admin", id: TEST_USER_IDS.currentPartnerId, name: "Mitchell Admin", },
|
||||
{ active: false, display_name: "OdooBot", id: TEST_USER_IDS.partnerRootId, name: "OdooBot" },
|
||||
{ active: false, display_name: "OdooBot", id: TEST_USER_IDS.partnerRootId, im_status: "bot", name: "OdooBot" },
|
||||
]);
|
||||
|
||||
@@ -28,11 +28,3 @@ formArchsRegistry.add(
|
||||
</div>
|
||||
</form>`
|
||||
);
|
||||
formArchsRegistry.add(
|
||||
'res.fake',
|
||||
`<form>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_ids"/>
|
||||
</div>
|
||||
</form>`
|
||||
);
|
||||
|
||||
@@ -22,6 +22,7 @@ addModelNamesToFetch([
|
||||
"mail.guest",
|
||||
"mail.link.preview",
|
||||
"mail.message",
|
||||
"mail.message.reaction",
|
||||
"mail.message.subtype",
|
||||
"mail.notification",
|
||||
"mail.shortcode",
|
||||
@@ -34,6 +35,7 @@ addModelNamesToFetch([
|
||||
addFakeModel("res.fake", {
|
||||
message_ids: { string: "Messages", type: "one2many", relation: "mail.message" },
|
||||
activity_ids: { string: "Activities", type: "one2many", relation: "mail.activity" },
|
||||
message_follower_ids: { string: "Followers", type: "char" },
|
||||
email_cc: { type: "char" },
|
||||
partner_ids: { relation: "res.partner", string: "Related partners", type: "one2many" },
|
||||
});
|
||||
@@ -85,7 +87,6 @@ insertModelFields("mail.message", {
|
||||
},
|
||||
is_discussion: { string: "Discussion", type: "boolean" },
|
||||
is_note: { string: "Discussion", type: "boolean" },
|
||||
is_notification: { string: "Note", type: "boolean" },
|
||||
needaction_partner_ids: {
|
||||
relation: "res.partner",
|
||||
string: "Partners with Need Action",
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/* @odoo-module */
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry
|
||||
.category("bus.view.archs")
|
||||
.category("form")
|
||||
.add(
|
||||
"res.fake",
|
||||
`<form>
|
||||
<sheet/>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_ids"/>
|
||||
<field name="message_follower_ids"/>
|
||||
</div>
|
||||
</form>`
|
||||
);
|
||||
Reference in New Issue
Block a user