[FIX] contract: Only include 'section_and_note_one2many' js widget in view fields that contain it

This commit is contained in:
Víctor Martínez
2020-11-04 08:22:40 +01:00
committed by Francisco Ivan Anton Prieto
parent 5f7c52b4f4
commit 438e584cb2

View File

@@ -11,6 +11,7 @@ this can be applied directly to Odoo*/
odoo.define("contract.section_and_note_backend", function(require) { odoo.define("contract.section_and_note_backend", function(require) {
"use strict"; "use strict";
require("account.section_and_note_backend");
var fieldRegistry = require("web.field_registry"); var fieldRegistry = require("web.field_registry");
var section_and_note_one2many = fieldRegistry.get("section_and_note_one2many"); var section_and_note_one2many = fieldRegistry.get("section_and_note_one2many");