Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5624 Vizualizări

ISSUE: How to add a new record to dataset of wizard list view via javascript

Version 7

What I am trying to Accomplish

  • Using javascript in a web module I am trying to progamatically add/edit the records in the stock.picking.in receiving wizard
  • But I am having no success in accessing the javascript object that represents the list view with the dataset
  • I have created a web module with a javascript file that attempts to inherit the instance.web.ListView of the wizard form but none of my custom events are able to access the dataset of the wizard form

code example from my javascript file:

openerp.test_access = function(instance) {
    var _t = instance.web._t,
        _lt = instance.web._lt;
    var QWeb = instance.web.qweb;

    instance.test_access = {};

    instance.web.views.add('test_access', 'instance.test_access.wizard');

    instance.test_access.wizard = instance.web.ListView.extend({
        init: function() {
            this._super.apply(this, arguments);
        },
        start: function() {
            var tmp = this._super.apply(this, arguments);
            var self = this;
            return tmp;            
        },
}

 

Imagine profil
Abandonează
Autor

ok, I have figured out how to add a new record using the function do_add_record(). But I am still unable to programmatically populate the values for this new record.

Related Posts Răspunsuri Vizualizări Activitate
0
iul. 25
54
1
iul. 25
4831
0
iul. 25
369
0
iun. 25
546
1
iun. 25
735