Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5676 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar