Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5710 Widoki

I need to change add a field on the reconciliation form of Odoo. Therefore, I need to override the javascript function defining account.ReconciliationModel
In this function, I need to add my additional field in some places, like quickCreateFields, etc.

How can I do that? Thx!

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Nicolas,

Following way you can override JS:

odoo.define('creditcard_transactions.reconciliation', function (require) {
"use strict";
var reconciliation = require('account.reconciliation');

reconciliation.abstractReconciliation.include({
    # Your code goes here
})
});

Register the JS file in web asset.

More reference:

Override JS-1

Override JS-2

Hope this will help you.

Sudhir Arya
ERP Harbor Consulting Services
Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Awatar
Odrzuć