|
@@ -3,7 +3,7 @@ openerp.eiru_invoice_status_change = function(instance, local) {
|
|
local.widgetInstance = null;
|
|
local.widgetInstance = null;
|
|
local.parentInstance = null;
|
|
local.parentInstance = null;
|
|
|
|
|
|
- local.PayslipGeneratorWidget = instance.Widget.extend({
|
|
|
|
|
|
+ local.EiruInvoiceStatusChangeWidget = instance.Widget.extend({
|
|
id: undefined,
|
|
id: undefined,
|
|
|
|
|
|
init: function(parent) {
|
|
init: function(parent) {
|
|
@@ -15,7 +15,7 @@ openerp.eiru_invoice_status_change = function(instance, local) {
|
|
checkState: function(id) {
|
|
checkState: function(id) {
|
|
var self = this;
|
|
var self = this;
|
|
self.id = id;
|
|
self.id = id;
|
|
-
|
|
|
|
|
|
+
|
|
if (id)
|
|
if (id)
|
|
self.fectchInitial();
|
|
self.fectchInitial();
|
|
},
|
|
},
|
|
@@ -81,7 +81,7 @@ openerp.eiru_invoice_status_change = function(instance, local) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- local.widgetInstance = new local.PayslipGeneratorWidget(this);
|
|
|
|
|
|
+ local.widgetInstance = new local.EiruInvoiceStatusChangeWidget(this);
|
|
local.widgetInstance.checkState(record.id);
|
|
local.widgetInstance.checkState(record.id);
|
|
|
|
|
|
}
|
|
}
|