Code Monkey home page Code Monkey logo

odoo-addons's People

Contributors

baptistekara avatar bosd avatar gityopie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odoo-addons's Issues

Any plans to migrate this to 11.0

I've tried, I can't make it work because I'm bad at js, but I've ported all the settings changes and mostly worked out the problems where the webclient has changed.

Error when opening Map View

I installed the web_google_maps and contacts_map modules, added the google api key and my GEOLOCATE of my customers is working fine (I get the long and lat values)

However when I open the map for 1 customer, I get a blank screen. On the top left I only see the buttons Create and Center Map.
When I open the map on the Contact overview screen I get the following error:
Error:
Uncaught TypeError: Cannot read property 'equals' of undefined

http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1060
Traceback:
TypeError: Cannot read property 'equals' of undefined
at http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1060:45
at Array.forEach ()
at Class._clusterAddMarker (http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1058:34)
at Class._createMarker [as _super] (http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1048:18)
at Class.createMarker (http://localhost:8069/google_marker_icon_picker/static/src/js/view/map/map_renderer.js:16:18)
at Class.createMarker (http://localhost:8069/web/static/src/js/core/class.js:123:38)
at http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1163:22
at Function.
.each.
.forEach (http://localhost:8069/web/static/lib/underscore/underscore.js:145:9)
at Class._renderUngrouped (http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1159:15)
at Class._renderMarkers (http://localhost:8069/web_google_maps/static/src/js/view/map/map_renderer.js:1132:22)

I'm using the modules on Odoo 12 enterprise edition.

Has anybody seen this behavior before?

David

Error on click "View map" button

Odoo 12.0-20200116 (Community Edition)
Ubuntu 18.04

From the page of the Customer when I click on the button "View map", I got this error:

`Error:
Error: QWeb2: Template 'MapView.buttons' not found

http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3374
Traceback:
exception@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3374:7
_render@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3419:103
render@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3415:151
renderButtons@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:3441:1023
_renderControlPanelElements@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:1301:175
start@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:1293:1462
OdooClass.extend/</prototype[name]</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3538:488
start@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:1558:1042
OdooClass.extend/</prototype[name]</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3538:488
_widgetRenderAndInsert/<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3684:52
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:681
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
add@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:797:471
then/</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:649
each@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:625:767
then/<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:560
Deferred@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:803:194
then@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:525
_widgetRenderAndInsert@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3683:165
appendTo@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3674:97
_startController@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:486:222
newController/<@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:511:13
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:681
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:803:56
_createViewController/<@http://0.0.0.0:8069/web/content/2231-a5cf969/web.assets_backend.js:496:790
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:681
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:874
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
updateFunc/<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:804:491
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:874
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:874
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:803:56
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
add@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:797:471
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:772
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:874
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:803:56
rpc/<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3589:448
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:681
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:803:56
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:803:56
genericJsonRpc/<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:3558:10
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:681
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
then/</</<@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:802:874
fire@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:796:299
fireWith@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:801:202
done@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:1192:95
callback@http://0.0.0.0:8069/web/content/1140-15b11ca/web.assets_common.js:1212:23`

Awesome

Hi @gityopie ,

The web_google_maps module is really good. My country has slightly weird addressing so Google maps returns fields differently so had to make some changes, but I will follow your work closely. Equally, you can always check any changes I make and integrate freely as you wish.

https://github.com/odoonz/misc-gityopie

Its still very much WIP, but there might be something useful, although I am useless at Javascript.

Address format

address is formated wrong in street field

"Number" "Street"

in Germany we write the address "Street" "Number"

possible to change that?

Error while installing v12

Hi!
I add the module in my folder app and when im trying to install, the following message appears:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/models.py", line 1108, in _validate_fields
    check(self)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 351, in _check_xml
    self.postprocess_and_fields(view.model, view_doc, view.id)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 1109, in postprocess_and_fields
    self.raise_view_error("\n".join(msg_lines), view_id)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
    raise ValueError(message)
ValueError: El campo 'is_blacklisted' utilizado en los atributos debe estar presente en la vista pero falta:
 - 'is_blacklisted' in attrs="{'invisible': [('is_blacklisted', '=', False)]}"

Contexto del error:
Vista `res.partner.geolocation.inherit`
[view_id: 454, xml_id: n/a, model: res.partner, parent_id: 113]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 663, in _tag_record
    record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
  File "/opt/odoo/odoo/odoo/models.py", line 3865, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/opt/odoo/odoo/odoo/models.py", line 3779, in _load_records_create
    return self.create(values)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-32>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 428, in create
    return super(View, self).create(vals_list)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/models.py", line 3596, in create
    fields[0].determine_inverse(batch_recs)
  File "/opt/odoo/odoo/odoo/fields.py", line 1117, in determine_inverse
    getattr(records, self.inverse)()
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
    view.write(data)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 444, in write
    return super(View, self).write(self._compute_defaults(vals))
  File "/opt/odoo/odoo/odoo/models.py", line 3321, in write
    self._write(store_vals)
  File "/opt/odoo/odoo/odoo/models.py", line 3457, in _write
    self._validate_fields(vals)
  File "/opt/odoo/odoo/odoo/models.py", line 1112, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Error mientras se validaban las restricciones\n\nEl campo \'is_blacklisted\' utilizado en los atributos debe estar presente en la vista pero falta:\n - \'is_blacklisted\' in attrs="{\'invisible\': [(\'is_blacklisted\', \'=\', False)]}"\n\nContexto del error:\nVista `res.partner.geolocation.inherit`\n[view_id: 454, xml_id: n/a, model: res.partner, parent_id: 113]', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-61>", line 2, in button_immediate_install
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/opt/odoo/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 421, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 313, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package, report=report)
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 68, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 802, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 865, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 764, in parse
    exc_info[2]
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 663, in _tag_record
    record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
  File "/opt/odoo/odoo/odoo/models.py", line 3865, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/opt/odoo/odoo/odoo/models.py", line 3779, in _load_records_create
    return self.create(values)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-32>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 428, in create
    return super(View, self).create(vals_list)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/models.py", line 3596, in create
    fields[0].determine_inverse(batch_recs)
  File "/opt/odoo/odoo/odoo/fields.py", line 1117, in determine_inverse
    getattr(records, self.inverse)()
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
    view.write(data)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 444, in write
    return super(View, self).write(self._compute_defaults(vals))
  File "/opt/odoo/odoo/odoo/models.py", line 3321, in write
    self._write(store_vals)
  File "/opt/odoo/odoo/odoo/models.py", line 3457, in _write
    self._validate_fields(vals)
  File "/opt/odoo/odoo/odoo/models.py", line 1112, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Error mientras se validaban las restricciones

El campo 'is_blacklisted' utilizado en los atributos debe estar presente en la vista pero falta:
 - 'is_blacklisted' in attrs="{'invisible': [('is_blacklisted', '=', False)]}"

Contexto del error:
Vista `res.partner.geolocation.inherit`
[view_id: 454, xml_id: n/a, model: res.partner, parent_id: 113]
None" while parsing /opt/odoo/odoo/addons/base_geolocalize/views/res_partner_views.xml:3, near
<record id="view_crm_partner_geo_form" model="ir.ui.view">
            <field name="name">res.partner.geolocation.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//notebook[last()]" position="inside">
                    <page string="Partner Assignation" name="geo_location">
                        <!-- something to do here -->
                        <group colspan="2" col="2">
                            <separator string="Geolocation" colspan="2"/>
                            <button string="Geolocate" name="geo_localize" colspan="2" icon="fa-check" type="object"/>
                            <div>
                                <span class="oe_inline"> ( On  </span>
                                <field name="date_localization" nolabel="1" class="oe_inline"/>
                                <span> : Lat : </span>
                                <field name="partner_latitude" nolabel="1" class="oe_inline"/>
                                <span> ;  Long:  </span>
                                <field name="partner_longitude" nolabel="1" class="oe_inline"/>
                                <span>) </span>
                            </div>
                        </group>
                    </page>
                </xpath>
            </field>
        </record>

Could you helpme? Thanks in advance!

route number switch

hi, i m in trouble getting this options correct. How is the correct format that the option is filling the street (Route Number) and the geolocation. When i put this in one i get an error - like down both seperate, i also get an error...

`

            <attribute name="widget">gplaces_autocomplete</attribute>
            <!-- by default address format for street is formatted by street number followed by street name -->
            <!-- if the format is different in your country for example, street name followed by street number -->
            <!-- you can modify the widget via options -->
			
			
            <attribute name="options">{ 
                 'fillfields': { 
                     'address': { 
                         'street': ['route', 'street_number'] 
                     } 
                } 												
             }</attribute>
			
			<!--
            <attribute name="options">{
                'fillfields': {							
				    'geolocation': {
                        'partner_latitude': 'latitude',
                        'partner_longitude': 'longitude'
                    }
                }
            }</attribute>
			-->
			
			
        </field>`

Error when open map view

I install the module for V11. After installing, I get the API for the map.
In customer list view of sale module, I see a button for map view. I click the map view button and the following error show up:
(all longitude and latitude of my res.partner is null)
Error:
Uncaught TypeError: Cannot read property 'equals' of undefined

http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3089
Traceback:
TypeError: Cannot read property 'equals' of undefined
at http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3089:358
at Array.forEach ()
at Class.clusterAddMarker (http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3089:275)
at Class.createMarker (http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3089:75)
at http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3091:1674
at Function.
.each.
.forEach (http://localhost:8069/web/content/755-ebd0930/web.assets_common.js:12:558)
at Class._renderUngrouped (http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3091:1488)
at Class._renderMarkers (http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3091:941)
at Class._renderView (http://localhost:8069/web/content/983-0cfe138/web.assets_backend.js:3096:556)
at Class.prototype.(anonymous function) [as _renderView] (http://localhost:8069/web/content/755-ebd0930/web.assets_common.js:3816:488)

V13 Migration

Hi and congratulations for your job.
Any program for v13 migration (google map)?
I know Odoo v13 already has a native map view but I think your is much more flexible... we can use your view on any model and field and with both odoo version (community and enterprise).
Thanks and best regards

Francesco

[12.0] Country & state Canada or completely different

Hi,

For most contacts I get:
Country = Canada
State = New Brunswick
For all contact the country or country is never correct. In the Netherlands we don't use states.

All other information is correct. Any idea why this is happening?

With kind regards,
Cas

City doesn't get send to google when housenumber is not present

Hi
First all great tool you have made; very usefull !

I found an error. When an user only fills in the streetname and not the housenumber. The city ‘locality’ (‘municipality’, ..) doesn't get filled in. So Google responses there is no city... because of that "administrative_area_level_2" get"s filled in as city name which is not correct

In addition you'll find a zip file with a video explaining it. First time I show the bug the second time I show the normal behavior when the housenumer is present.

Odoo city missing.zip

Response from Google because city was missing:
/**/_xdc_._akyo20 && _xdc_._akyo20( { "html_attributions" : [], "result" : { "address_components" : [ { "long_name" : "Antwerpsestraat", "short_name" : "Antwerpsestraat", "types" : [ "route" ] }, { "long_name" : "Antwerpen", "short_name" : "AN", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Vlaanderen", "short_name" : "Vlaanderen", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "België", "short_name" : "BE", "types" : [ "country", "political" ] } ], "adr_address" : "\u003cspan class=\"street-address\"\u003eAntwerpsestraat\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eBelgië\u003c/span\u003e", "formatted_address" : "Antwerpsestraat", "geometry" : { "location" : { "lat" : 51.0977415, "lng" : 4.3673673 }, "viewport" : { "northeast" : { "lat" : 51.09909048029149, "lng" : 4.368716280291502 }, "southwest" : { "lat" : 51.09639251970849, "lng" : 4.366018319708497 } } }, "icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png", "id" : "6a8d281b4dedc7c4c576eacebed1d2f8a3d0b7d4", "name" : "Antwerpsestraat", "place_id" : "EhhBbnR3ZXJwc2VzdHJhYXQsIEJlbGdpdW0iLiosChQKEgmpPkvg4fHDRxHfREQPaMDxuBIUChIJH4agHvrvw0cR-Gppir5EdpU", "reference" : "EhhBbnR3ZXJwc2VzdHJhYXQsIEJlbGdpdW0iLiosChQKEgmpPkvg4fHDRxHfREQPaMDxuBIUChIJH4agHvrvw0cR-Gppir5EdpU", "scope" : "GOOGLE", "types" : [ "route" ], "url" : "https://maps.google.com/?q=Antwerpsestraat&ftid=0x47c3f1e1e04b3ea9:0xb8f1c0680f4444df", "utc_offset" : 120 }, "status" : "OK" }

Map details do not appear

Hi, Map details do not appear in Odoo v11
The Google Map Api Key has been registered in the general options.

Any suggestions?

Thanks!

image

Error: QWeb2: Template 'web_google_maps.FieldGooglePlaces' not found

Im getting above error when gpoing to client view after installed web_google_map addon.
Odoo 9.0
thanks for your help!

http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2444
Rastreo de error:
exception@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2444:7
_render@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2482:92
render@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2478:146
renderElement@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2632:1068
renderElement@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3643:2957
SoftwareClass.extend/</prototype[name]</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2539:556
renderElement@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3649:1323
SoftwareClass.extend/</prototype[name]</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2539:556
__widgetRenderAndInsert/<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2632:912
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:678
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
add@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:645:467
then/</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:631
each@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:473:758
then/<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:553
Deferred@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:651:189
then@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:518
__widgetRenderAndInsert@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2632:879
replace@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2632:718
init_fields/<@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3607:616
_.forEach@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:12:558
init_fields@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3607:570
load_record/<@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3549:24
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:678
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
add@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:645:467
then/</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:631
each@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:473:758
then/<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:553
Deferred@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:651:189
then@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:518
load_record@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3548:360
trigger@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2620:166
trigger@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:2622:636
do_show/shown</<@http://192.99.243.41/web/content/570-e4f4e3c/web.assets_backend.js:3546:185
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:678
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
fireWith@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:649:198
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:849
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
fireWith@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:649:198
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:849
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
fireWith@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:649:198
Deferred/</deferred[tuple[0]]@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:651:31
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
fireWith@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:649:198
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:849
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
fireWith@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:649:198
then/</</<@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:650:849
fire@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:644:281
fireWith@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:649:198
done@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:1040:86
callback@http://192.99.243.41/web/content/557-f1782d0/web.assets_common.js:1060:15

JS error (V12) when click on button map view #111 - Please Check in Firefox Browser


Error: QWeb2: Template 'MapView.buttons' not found

http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3374
Traceback:
exception@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3374:7
_render@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3419:103
render@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3415:151
renderButtons@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:3179:1023
_renderControlPanelElements@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:1275:175
start@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:1267:1427
OdooClass.extend/</prototype[name]</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3537:488
start@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:1518:1018
OdooClass.extend/</prototype[name]</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3537:488
_widgetRenderAndInsert/<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3682:52
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:681
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
add@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:797:471
then/</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:649
each@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:625:767
then/<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:560
Deferred@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:803:194
then@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:525
_widgetRenderAndInsert@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3681:165
appendTo@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3672:97
_startController@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:486:222
newController/<@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:511:13
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:681
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:803:56
_createViewController/<@http://localhost:10012/web/content/94176-3a63994/web.assets_backend.js:496:790
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:681
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:874
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
updateFunc/<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:804:491
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:874
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:874
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:803:56
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
add@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:797:471
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:772
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:874
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:803:56
rpc/<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3587:448
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:681
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:803:56
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:803:56
genericJsonRpc/<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:3556:10
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:681
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
then/</</<@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:802:874
fire@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:796:299
fireWith@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:801:202
done@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:1192:95
callback@http://localhost:10012/web/content/94137-7206712/web.assets_common.js:1212:23

[12.0] Conflict with partner_autocomplete

Hi!

Great addon, but we have following conflict on Odoo 12.0

In case when both addons (sale_maps and partner_autocomplete) installed, last addon that was installed override widget of previous addon placed on name field of partner.

Steps to reproduce:

  1. Install sales_maps addon
  2. Open form to create new contact
  3. Choos type of contact: Company
  4. Start typing company name, and see that autocomplete address is working
  5. Install partner_autocomplete addon
  6. Reload page
  7. Open contact creation form
  8. Choose contact type Company
  9. Start typing company name
  10. Choose company from drop-down menu
  11. See that company logo changed, but address not completed
  12. Choose contact type Individual
  13. Start typing contact name
  14. Nothing happens.

11.0 Geolocation now only working on Address widget, not Places.

To reproduce is easy.
Click Create and select partner-assignation tab
Just create a partner and enter a place say Buckingham Palace in the name field
Lat long doesn't change
Do same in street field it does.
I added
<attribute name="options">{'lat': 'partner_latitude', 'lng': 'partner_longitude'}</attribute> to the name field in the res_partner view and this resolved it, but not sure if it is right.

No map context menu or Route button in the partner's view

Hello,

First of all, thank you for sharing your module. It works great!

However... I cannot activate all the features that you have on your demo video. I am using Odoo 11:

  • I cannot right-click over the map to access Google's features such as "Route to here";
  • The Route button doesn't appear in the Partner's View. The Layers Button (the button in the top left corner of your video with the 3 lines) doesn't appear either. I only have the Map button in the Partners form. When I click the Map button it opens the Google Map inside Odoo with a pin for the partner. But I can only zoom and pan.

I have activated ALL of Google's APIs except mobile (Android and iOS) and placed the Google API key in the Settings. I also have the 3 checkboxes in the Odoo's settings for the Geometry, Places and Drawing services.

What could I be missing?...

Thanks,

Fernando

'MapView.buttons' not found

Odoo V12:
I installed fresh new odoo v12 and test you module.
I install the module then click on Map icon (on Sale->Customer model). Following error occurs:

Uncaught Error: QWeb2: Template 'MapView.buttons' not found
http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3374
Traceback:
Error: QWeb2: Template 'MapView.buttons' not found
at Object.exception (http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3374:7)
at Engine._render (http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3419:103)
at Engine.render (http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3415:151)
at Class.renderButtons (http://localhost:8069/web/content/768-1c4f312/web.assets_backend.js:3283:638)
at Class._renderControlPanelElements (http://localhost:8069/web/content/768-1c4f312/web.assets_backend.js:1279:175)
at Class.start (http://localhost:8069/web/content/768-1c4f312/web.assets_backend.js:1271:1427)
at Class.prototype.(anonymous function) [as start] (http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3537:488)
at Class.start (http://localhost:8069/web/content/768-1c4f312/web.assets_backend.js:1522:1018)
at Class.prototype.(anonymous function) [as start] (http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3537:488)
at http://localhost:8069/web/content/735-9ab1e86/web.assets_common.js:3682:52

Case where name is false on button box

@gityopie

I just ran into this issue. Not sure best way of handling it. In the case where name is false, the map button doesn't quite work. It just opens a big map not centred on the partner. Also name isn't a unique field either. We use a custom _compute_display_name which means I just changed context to {'search_default_name': name} or street and it worked fine. But it will probably need a more general solution which would involve passing lat, long instead if they exist unless the intention was to open all partners with that name from that button.

Kanban Box on mobile devices displays incorrectly

Hi, great work on these Google Maps addons! We absolutely love them!

We have just on issue: when displayed in a mobile device (iOS on Safari, Google Chrome and the Odoo iOS app), when you select a contact on the map the Kanban box shows no content, just the X to close the box. Google places, on the other hand do display correctly.

We would be glad to assist in any way we can!

Regards

[web_google_maps] Wrong state and country (gplaces_autocomplete.js)

First of all we would like to thank for your work, the module is nice

We have this issue in 12.0 (maybe other versions are affected too)

If you install several localisations, several states are loaded, some of them sharing the same code:
image

Image taken from odoo runbot

After debugging the code we realized that the search_read() called by JS tries to find the state by code, finding several records and getting the first one to fill the state. This is in most cases wrong, and the change of the state changes as well (onchange) the country.

The solution would be to send not only the state code, but also the country.

Thanks for your help
Alvaro

Error while importing module on V12

This error on fresh Odoo 12.0-20181011 (Community Edition).
Could you help me ?
Thx, Dorian

Error while importing module 'web_google_maps': 'Wrong value for ir.ui.view.type: \'map\'\n<record id="view_res_partner_map" model="ir.ui.view">\n <field name="name">view.res.partner.map</field>\n <field name="model">res.partner</field>\n <field name="arch" type="xml">\n <map class="o_res_partner_map" library="geometry" string="Map" lat="partner_latitude" lng="partner_longitude" colors="blue:company_type==\'person\';green:company_type==\'company\';">\n <field name="id"/>\n <field name="partner_latitude"/>\n <field name="partner_longitude"/>\n <field name="company_type"/>\n <field name="color"/>\n <field name="display_name"/>\n <field name="title"/>\n <field name="email"/>\n <field name="parent_id"/>\n <field name="is_company"/>\n <field name="function"/>\n <field name="phone"/>\n <field name="street"/>\n <field name="street2"/>\n <field name="zip"/>\n <field name="city"/>\n <field name="country_id"/>\n <field name="mobile"/>\n <field name="state_id"/>\n <field name="category_id"/>\n <field name="image_small"/>\n <field name="type"/>\n <templates>\n <t t-name="kanban-box">\n <div class="oe_kanban_global_click o_res_partner_kanban">\n <div class="o_kanban_image">\n <t t-if="record.image_small.raw_value">\n <img t-att-src="kanban_image(\'res.partner\', \'image_small\', record.id.raw_value)"/>\n </t>\n <t t-if="!record.image_small.raw_value">\n <t t-if="record.type.raw_value === \'delivery\'">\n <img t-att-src="_s + &quot;/base/static/src/img/truck.png&quot;" class="o_kanban_image oe_kanban_avatar_smallbox"/>\n </t>\n <t t-if="record.type.raw_value === \'invoice\'">\n <img t-att-src="_s + &quot;/base/static/src/img/money.png&quot;" class="o_kanban_image oe_kanban_avatar_smallbox"/>\n </t>\n <t t-if="record.type.raw_value != \'invoice\' &amp;&amp; record.type.raw_value != \'delivery\'">\n <t t-if="record.is_company.raw_value === true">\n <img t-att-src="_s + &quot;/base/static/src/img/company_image.png&quot;"/>\n </t>\n <t t-if="record.is_company.raw_value === false">\n <img t-att-src="_s + &quot;/base/static/src/img/avatar.png&quot;"/>\n </t>\n </t>\n </t>\n </div>\n <div class="oe_kanban_details">\n <strong class="o_kanban_record_title oe_partner_heading">\n <field name="display_name"/>\n </strong>\n <div class="o_kanban_tags_section oe_kanban_partner_categories">\n <span class="oe_kanban_list_many2many">\n <field name="category_id" widget="many2many_tags" options="{\'color_field\': \'color\'}"/>\n </span>\n </div>\n <ul>\n <li t-if="record.parent_id.raw_value and !record.function.raw_value">\n <field name="parent_id"/>\n </li>\n <li t-if="!record.parent_id.raw_value and record.function.raw_value">\n <field name="function"/>\n </li>\n <li t-if="record.parent_id.raw_value and record.function.raw_value">\n <field name="function"/> at <field name="parent_id"/>\n </li>\n <li t-if="record.city.raw_value and !record.country_id.raw_value">\n <field name="city"/>\n </li>\n <li t-if="!record.city.raw_value and record.country_id.raw_value">\n <field name="country_id"/>\n </li>\n <li t-if="record.city.raw_value and record.country_id.raw_value">\n <field name="city"/>\n , <field name="country_id"/>\n </li>\n <li t-if="record.email.raw_value" class="o_text_overflow">\n <field name="email"/>\n </li>\n </ul>\n <div class="oe_kanban_partner_links"/>\n </div>\n </div>\n </t>\n </templates>\n </map>\n </field>\n </record>\n/tmp/tmpzk_4brsu/web_google_maps/views/res_partner.xml\n3'

Uncaught Error: QWeb2: Template 'MapView' not found

contacts_maps >>>>>>Error during installation - V11

Erro:
Aviso

Traceback (most recent call last):
File "/opt/adaxtechnology/odoo/tools/convert.py", line 744, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/opt/adaxtechnology/odoo/tools/convert.py", line 654, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/opt/adaxtechnology/odoo/addons/base/ir/ir_model.py", line 1487, in _update
record = record.create(values)
File "/opt/adaxtechnology/odoo/models.py", line 3373, in create
record = self.browse(self._create(old_vals))
File "/opt/adaxtechnology/odoo/models.py", line 3466, in _create
cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))
File "/opt/adaxtechnology/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/opt/adaxtechnology/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
psycopg2.IntegrityError: null value in column "view_mode" violates not-null constraint
DETAIL: Failing row contains (1965, 3, null, null, null, f, 1, 2019-03-22 17:55:44.97663, 1, 2019-03-22 17:55:44.97663).

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/adaxtechnology/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/adaxtechnology/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/adaxtechnology/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/adaxtechnology/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/opt/adaxtechnology/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/adaxtechnology/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/adaxtechnology/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/adaxtechnology/odoo/http.py", line 936, in call
return self.method(*args, **kw)
File "/opt/adaxtechnology/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/adaxtechnology/modulos/interface/web/controllers/main.py", line 935, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/adaxtechnology/modulos/interface/web/controllers/main.py", line 923, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/adaxtechnology/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/adaxtechnology/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/opt/adaxtechnology/odoo/addons/base/module/module.py", line 71, in check_and_log
return method(self, *args, **kwargs)
File "/opt/adaxtechnology/odoo/addons/base/module/module.py", line 448, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/adaxtechnology/odoo/addons/base/module/module.py", line 541, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/adaxtechnology/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/adaxtechnology/odoo/modules/loading.py", line 371, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/adaxtechnology/odoo/modules/loading.py", line 265, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/adaxtechnology/odoo/modules/loading.py", line 172, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/adaxtechnology/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/adaxtechnology/odoo/tools/convert.py", line 791, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/adaxtechnology/odoo/tools/convert.py", line 852, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/opt/adaxtechnology/odoo/tools/convert.py", line 751, in parse
exc_info[2]
File "/opt/adaxtechnology/odoo/tools/pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "/opt/adaxtechnology/odoo/tools/convert.py", line 744, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/opt/adaxtechnology/odoo/tools/convert.py", line 654, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/opt/adaxtechnology/odoo/addons/base/ir/ir_model.py", line 1487, in _update
record = record.create(values)
File "/opt/adaxtechnology/odoo/models.py", line 3373, in create
record = self.browse(self._create(old_vals))
File "/opt/adaxtechnology/odoo/models.py", line 3466, in _create
cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))
File "/opt/adaxtechnology/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/opt/adaxtechnology/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
odoo.tools.convert.ParseError: "null value in column "view_mode" violates not-null constraint
DETAIL: Failing row contains (1965, 3, null, null, null, f, 1, 2019-03-22 17:55:44.97663, 1, 2019-03-22 17:55:44.97663).
" while parsing /opt/adaxtechnology/modulos/geo/contacts_maps/views/res_partner.xml:6, near


Number of Places API call is extreme

Hi Yopi Angi we do use all your Odoo modules in Odoo v12 EE and it does work very well. There is only one downside, the number of "Google Places API" calls is extreme.

The following counters in Google Cloud Console are visable:

  • Geocoding API
  • Maps JavaScript API
  • Places API

We installed:

  • Web Google Maps
  • CRM Maps
  • Sales Maps
  • Contacts Maps
  • Website Google Address Form
  • Web Google Maps Drawing
  • Google Marker Icon Picker

The "Places API" has a masive number 3000 calls within 1hr (we only have 10 employees active). We expect the "Places API" is used for the autocomplete feature when typing partner's name or address. Is is possible, that the API call is used when typing a letter?

G = 1st API call with 5 addresses = 5 API calls
Go = 2nd API call with 5 addresses = 10 API calls
Goo = 3rd call with 5 addresses = 15 API calls
Goog = 4th call with 5 addresses = 20 API calls
Googl = 6th call with 5 addresses = 25 API calls
Google = 7nd call with 5 addresses = 30 API calls

Or is there another cause which result in the same outcome?
Is it maybe caused when import Contacts?

Your feedback in this matter is higly appriciated.

Kind regards,
Michel

API Key and Billing Errors

Hello,

First I want to thank you for this great app with nice features.

I have a freshly installed Odoo 12 CE on server.
However after installation we got the map screen with the text that "this is for Development Purpose only! And Gmap cannot be loaded on my site. When I clicked the link on the error message, it leads me to the gmap about KPI and
Bildschirmfoto 2019-03-21 um 14 10 23
Billig error explanation.

Do I need to change any parameter? What could be the issue at all? We really want to use this app.
Thans for your support in advance.

Michael

Script Error: Uncaught TypeError: a.addListener is not a function

Got this error on V10:

Uncaught TypeError: a.addListener is not a function
at new He (js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:89)
at Object._.Je (js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:90)
at common.js:146
at js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:153
at js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:82
at js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:153
at Xd (js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:81)
at Td.wa (js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:153)
at common.js:1
util.js:214 Uncaught TypeError: Cannot read property 'prototype' of undefined
at util.js:214
at js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:153
at js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:82
at js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:153
at Xd (js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:81)
at Td.wa (js?v=3.33&key=AIzaSyCwHh6up5ECJvmJyxaHQZcv9k_9dc9DyBc&libraries=geometry,places:153)
at util.js:1

Server error when "Springfield" is in street field

v12

When the street field is Springfield or "Springfield" the geolocalize returns an index out of range server error:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/tools/safe_eval.py", line 350, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
  File "", line 11, in <module>
  File "/odoo/custom/addons/crm_maps/models/crm_lead.py", line 36, in geo_localize
    apikey=google_api_key)
  File "/odoo/odoo-server/addons/base_geolocalize/models/res_partner.py", line 42, in geo_find
    geo = result['results'][0]['geometry']['location']
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/odoo/odoo-server/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/odoo/odoo-server/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 962, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo/odoo-server/addons/crm/models/crm_lead.py", line 338, in write
    return super(Lead, self).write(vals)
  File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 322, in write
    result = super(MailThread, self).write(values)
  File "/odoo/odoo-server/addons/mail/models/mail_activity.py", line 588, in write
    return super(MailActivityMixin, self).write(vals)
  File "/odoo/odoo-server/odoo/models.py", line 3321, in write
    self._write(store_vals)
  File "/odoo/odoo-server/addons/base_automation/models/base_automation.py", line 259, in _write
    action._process(records, domain_post=domain_post)
  File "/odoo/odoo-server/addons/base_automation/models/base_automation.py", line 205, in _process
    self.action_server_id.with_context(**ctx).run()
  File "/odoo/odoo-server/addons/base/models/ir_actions.py", line 569, in run
    res = func(action, eval_context=eval_context)
  File "/odoo/odoo-server/addons/website/models/ir_actions.py", line 57, in run_action_code_multi
    res = super(ServerAction, self).run_action_code_multi(action, eval_context)
  File "/odoo/odoo-server/addons/base/models/ir_actions.py", line 445, in run_action_code_multi
    safe_eval(action.sudo().code.strip(), eval_context, mode="exec", nocopy=True)  # nocopy allows to return 'action'
  File "/odoo/odoo-server/odoo/tools/safe_eval.py", line 373, in safe_eval
    pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2])
  File "/odoo/odoo-server/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/odoo/odoo-server/odoo/tools/safe_eval.py", line 350, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
  File "", line 11, in <module>
  File "/odoo/custom/addons/crm_maps/models/crm_lead.py", line 36, in geo_localize
    apikey=google_api_key)
  File "/odoo/odoo-server/addons/base_geolocalize/models/res_partner.py", line 42, in geo_find
    geo = result['results'][0]['geometry']['location']
ValueError: <class 'IndexError'>: "list index out of range" while evaluating
"# Available variables:\n#  - env: Odoo Environment on which the action is triggered\n#  - model: Odoo Model of the record on which the action is triggered; is a void recordset\n#  - record: record on which the action is triggered; may be void\n#  - records: recordset of all records on which the action is triggered in multi-mode; may be void\n#  - time, datetime, dateutil, timezone: useful Python libraries\n#  - log: log(message, level='info'): logging function to record debug information in ir.logging table\n#  - Warning: Warning Exception to use with raise\n# To return an action, assign: action = {...}\n\nrecord.geo_localize()"

License question

Hello!

First of all thank you for your work!

I have the question about license of these addons. As i see you had some troubles publishing addons under LGPL license and now they are under AGPL (but LICENSE file in the repository root still contains LGPL license). Is it the only trouble that prevents you to publish these addons under LGPL license? If so, than it could be fixed by using LGPL-3 license code in manifest (see).

Thanks!

JS error (V12) when click on button map view

Odoo 11

Hi Great Work you have done, does it work with odoo 11? any plans to make them work with odoo 11?

Thanks

Address autocomplete not working on v12

Hi,

Great plugin btw. Currently using Odoo 12.0 Community Edition. Fresh install.

Steps to reproduce, create new customer, fill in the address field partially. No suggestions at all.

Additional info, if switched from "Individual" to "Company", the Company name autocomplete suggestion works, although I'm not sure what data are you using here? I assume not Google Business, because some companies I know registered there don't show up on the suggestions.

I'm a complete noob with Odoo, any help is appreciated.

Thanks.

v11 on Odoo 11 Uncaught Type Error

Product sold on map?

Hi, I am going through the features of addons specially related to google map and all are fantastic. Just a thought if it can be enhanced further to show products sold on the map. So products will take customer from sales and then will plot on the map. thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.