Skip to Content
Menu
This question has been flagged
1 Reply
5100 Views

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!

Avatar
Discard
Best Answer

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
Avatar
Discard