Browse Source

[IMP] To avoid conflicts, we check that widgets phone and fax do not exist before using

pull/83/head
Sebastien LANGE 9 years ago
parent
commit
810c7e6662
  1. 11
      base_phone/static/src/js/phone_widget.js

11
base_phone/static/src/js/phone_widget.js

@ -123,9 +123,14 @@ var FieldFax = formwidgets.FieldChar.extend({
}
});
core.form_widget_registry
.add('phone', FieldPhone)
.add('fax', FieldFax);
// To avoid conflicts, we check that widgets do not exist before using
if(!core.form_widget_registry.get('fax')){
core.form_widget_registry.add('fax', FieldFax);
}
if(!core.form_widget_registry.get('phone')){
core.form_widget_registry.add('phone', FieldPhone);
}
/*
var Column = require('web.list_view.js');

Loading…
Cancel
Save