bkerdzaia / odoo_phone_intl

Odoo international masked phone widget addon
10 stars 4 forks source link

I can't get the widget to work #2

Open specks-zz opened 3 years ago

specks-zz commented 3 years ago

I have defined the field like this:

but in the field only show a list like this:

  • Australia
  • Canada
  • United Kingdom
  • United States

phone-widget

Are there any dependencies on a package that I need to install? or is there any configuration i need to do?

Regards.

bkerdzaia commented 3 years ago

You don't have to install dependencies, all dependencies that are needed are already in libs folder.

All options that is supported are documented here.

I didn't see how you have defined the field, it's blank, so please fix it.

specks-zz commented 3 years ago

Hi, sorry, i didn't put the definition of the field.

< field name="mobile_phone" widget="phone_intl" options="{'only_country_codes': ['us', 'co', 'gt','ar','cl','cr','ec','sv','hn','mx','ni','pa','pe','pr','ve'],'country_field': 'work_country', 'separate_dial_code': True, 'allow_dropdown': True}"/> In this case the field name is: mobile_phone and work_country has the id from the employee country

image

Thank you for your response.

Regards.

bkerdzaia commented 3 years ago

Hi, sorry for late response.

Which version do you use? I only supports 11, 12, 13 versions.

And also which browser? Please send the output of console if there any errors.

specks-zz commented 3 years ago

Hi. The Odoo Version is 13 CE. Is deployed in Ubuntu 20. The console not shown any error

I deployed a new environment whit a clean installation from Odoo 13 but i get the same result:

image

When i saved a new value for mobile_phone field (Móvil del trabajo --- spanish--) i have some warnings the Mozilla console. I'm not sure that warnings are related to that field, however there is a warning that is related to that field:

The following fields are invalid:

image

Regards.

bkerdzaia commented 3 years ago

I think it's an odoo problem, this field Móvil del trabajo should not be surrounded with li tag, and also there is an error that record can't be saved.