diff --git a/base_phone/static/src/js/phone_widget.js b/base_phone/static/src/js/phone_widget.js index 0e9a9d2..7202135 100644 --- a/base_phone/static/src/js/phone_widget.js +++ b/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');