Hello,
In odoo one2many lines have 'Add a note' button click it collapse all the column and and add text i need to change type text to HTML.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
In odoo one2many lines have 'Add a note' button click it collapse all the column and and add text i need to change type text to HTML.
Thanks
Hi community,
above issue is resolve,
odoo.define('sale_o2m_add_note_to_html.section_and_note_backend', function (require) {
"use strict";
var FieldChar = require('web.basic_fields').FieldChar;
var fieldRegistry = require('web.field_registry');
var ListFieldText = require('web.basic_fields').ListFieldText;
var FieldHtml = require('web_editor.field.html');
// This is a merge between a FieldText and a FieldChar.
// We want a FieldChar for section,
// and a FieldText for the rest (product and note).
var SectionAndNoteFieldText = function (parent, name, record, options) {
var isSection = record.data.display_type === 'line_section';
var isNote = record.data.display_type === 'line_note';
var Constructor = false
if (isSection) {
Constructor = FieldChar;
} else if (isNote) {
Constructor = FieldHtml;
} else {
Constructor = ListFieldText;
}
return new Constructor(parent, name, record, options);
};
fieldRegistry.add('section_and_note_text', SectionAndNoteFieldText);
});สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
|
1
มี.ค. 25
|
4842 | ||
|
|
0
ก.พ. 23
|
3001 | ||
|
Get the values of one2many field
แก้ไขแล้ว
|
|
1
มิ.ย. 22
|
2937 | |
|
|
1
มิ.ย. 22
|
2051 | ||
|
|
3
ก.พ. 25
|
16534 |