mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 10:32:05 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-inherit="mail.AttachmentCard" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('o_AttachmentCard_details')]" position="inside">
|
||||
<div class="o_AttachmentCard_createDate text-truncate">
|
||||
<t t-esc="attachmentCard.attachment.create_user" /><br />
|
||||
<t t-esc="attachmentCard.attachment.create_date" />
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-inherit="mail.AttachmentImage" t-inherit-mode="extension">
|
||||
<div t-ref="root" position="inside">
|
||||
<t t-esc="attachmentImage.attachment.create_user" /><br />
|
||||
<t t-esc="attachmentImage.attachment.create_date" />
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
|
|
@ -0,0 +1,24 @@
|
|||
/** @odoo-module **/
|
||||
|
||||
import {attr} from "@mail/model/model_field";
|
||||
import {registerPatch} from "@mail/model/model_core";
|
||||
|
||||
registerPatch({
|
||||
name: "Attachment",
|
||||
modelMethods: {
|
||||
convertData(data) {
|
||||
const data2 = this._super(data);
|
||||
if ("create_date" in data) {
|
||||
data2.create_date = data.create_date;
|
||||
}
|
||||
if ("create_user" in data) {
|
||||
data2.create_user = data.create_user;
|
||||
}
|
||||
return data2;
|
||||
},
|
||||
},
|
||||
fields: {
|
||||
create_date: attr(),
|
||||
create_user: attr(),
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue