odoo-addons icon indicating copy to clipboard operation
odoo-addons copied to clipboard

Error while importing module on V12

Open Dody56 opened this issue 6 years ago • 7 comments

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'

Dody56 avatar Oct 11 '18 13:10 Dody56

Hi @DorianPIERRE

I just installed the modules on fresh DB with the latest Odoo commit for v12c and it works fine. could you provide steps to reproduce the error?

gityopie avatar Oct 11 '18 17:10 gityopie

Exactly the same problem here on a fresh install :

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>\nfile:/c:/windows/temp/tmpqgyuhuwk/web_google_maps/views/res_partner.xml\n3'

Any idea ?

roronan29 avatar Oct 13 '18 16:10 roronan29

Hi @roronan29

Could you please give me steps how did you installed the module?

I made a video of my local installation https://drive.google.com/open?id=1ju6_BB01lERg-eoEzdQcoPxVNkmwtIwQ

gityopie avatar Oct 14 '18 01:10 gityopie

Hi @gityopie !

I find our mistake, beginner’s fault : we import zip file directly from odoo interface, with «base_import_module ». I will try to unzip files to addons folder by ftp. ;-)

Thanks for your work

roronan29 avatar Oct 14 '18 07:10 roronan29

Hi @roronan29, is it solve the default ? Thanks

Dody56 avatar Oct 15 '18 10:10 Dody56

@DorianPIERRE direct upload module to server/odoo/addons folder, then on developper mode : update application list, your new module upload will appear, search it, find it, install it. Our mistake is to upload it from odoo backend, that doesn't execute *py commands. ;-)

roronan29 avatar Oct 15 '18 14:10 roronan29

how can we do the install in odoo free SaaS? I get a demo, download the zip, import in apps an get

Error while importing module 'web_google_maps': 'dependencies of the module: base_geolocalize\n'

AlwaPeru avatar Feb 22 '19 03:02 AlwaPeru