odoo-addons
odoo-addons copied to clipboard
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 + "/base/static/src/img/truck.png"" 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 + "/base/static/src/img/money.png"" class="o_kanban_image oe_kanban_avatar_smallbox"/>\n </t>\n <t t-if="record.type.raw_value != \'invoice\' && record.type.raw_value != \'delivery\'">\n <t t-if="record.is_company.raw_value === true">\n <img t-att-src="_s + "/base/static/src/img/company_image.png""/>\n </t>\n <t t-if="record.is_company.raw_value === false">\n <img t-att-src="_s + "/base/static/src/img/avatar.png""/>\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'
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?
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 + "/base/static/src/img/truck.png"" 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 + "/base/static/src/img/money.png"" class="o_kanban_image oe_kanban_avatar_smallbox"/>\n </t>\n <t t-if="record.type.raw_value != \'invoice\' && record.type.raw_value != \'delivery\'">\n <t t-if="record.is_company.raw_value === true">\n <img t-att-src="_s + "/base/static/src/img/company_image.png""/>\n </t>\n <t t-if="record.is_company.raw_value === false">\n <img t-att-src="_s + "/base/static/src/img/avatar.png""/>\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 ?
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
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
Hi @roronan29, is it solve the default ? Thanks
@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. ;-)
how can we do the install in odoo free SaaS? I get a demo, download the zip, import in apps an get