Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
12278 Weergaven

i would like to create a module which call a wizard from js. Based on existing expiry date field on sale.order, enable edit mode only if the expiry date exceeds current date . if current date exceeds, then open a wizard to enter a new expiry date.what i tried is given below,it gives an error AttributeError: 'expiration.wizard' object has no attribute 'expiration_date_wizard'

formView.include({

    on_button_edit: function() {   

var today = new Date()   

var test = new Model('sale.order').query(["validity_date"])   

var wiz = new Model('expiration.wizard')   

return wiz.call('expiration_date_wizard') 

  return this.to_edit_mode();
    },   

to_edit_mode: function() {       

this._super();
        }    });

Avatar
Annuleer

you have to define the function expiration_date_wizard in the same model

Gerelateerde posts Antwoorden Weergaven Activiteit
1
sep. 20
4801
3
apr. 18
31316
0
jul. 25
257
1
jul. 25
5022
0
jul. 25
578