← Back to team overview

openupgrade-drivers team mailing list archive

[Question #231855]: ERROR while migration 6.1 t0 7.0 openerp.addons.base.ir.ir_ui_view: Can't render view base.view_partner_form for model: res.partner

 

New question #231855 on OpenUpgrade Server:
https://answers.launchpad.net/openupgrade-server/+question/231855

Hi Stefan;

I got error message: 
2013-07-03 03:38:24,469 7703 ERROR b6 openerp.addons.base.ir.ir_ui_view: Can't render view base.view_partner_form for model: res.partner

when I run:
openupgrade-server/openerp-server --update=base --stop-after-init --database=b6 --addons-path=openupgrade-addons/ --logfile=LOG0407-1

I updated and modified both openupgrade-server and openupgrade-addons.
What could be the reason?

complete logfile is below:

2013-07-03 03:38:08,595 7703 INFO ? openerp: OpenERP version 7.0
2013-07-03 03:38:08,595 7703 INFO ? openerp: addons paths: /opt/openerp/openupgrade-addons
2013-07-03 03:38:08,596 7703 INFO ? openerp: database hostname: localhost
2013-07-03 03:38:08,596 7703 INFO ? openerp: database port: 5432
2013-07-03 03:38:08,596 7703 INFO ? openerp: database user: openerp
2013-07-03 03:38:08,649 7703 INFO b6 openerp.modules.loading: loading 1 modules...
2013-07-03 03:38:08,653 7703 INFO b6 openerp.modules.migration: module base: Running migration [>7.0.1.3] pre-migration
2013-07-03 03:38:08,710 7703 INFO b6 OpenUpgrade: base: pre-migration script called with version 6.1.1.3
2013-07-03 03:38:08,718 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_module_module SET name = %s WHERE name = %s
2013-07-03 03:38:08,719 7703 DEBUG b6 OpenUpgrade: 1 rows affected
2013-07-03 03:38:08,720 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_model_data SET module = %s WHERE module = %s 
2013-07-03 03:38:08,720 7703 DEBUG b6 OpenUpgrade: 0 rows affected
2013-07-03 03:38:08,721 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_module_module SET name = %s WHERE name = %s
2013-07-03 03:38:08,721 7703 DEBUG b6 OpenUpgrade: 1 rows affected
2013-07-03 03:38:08,722 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_model_data SET module = %s WHERE module = %s 
2013-07-03 03:38:08,722 7703 DEBUG b6 OpenUpgrade: 1 rows affected
2013-07-03 03:38:08,723 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_module_module SET name = %s WHERE name = %s
2013-07-03 03:38:08,723 7703 DEBUG b6 OpenUpgrade: 1 rows affected
2013-07-03 03:38:08,724 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_model_data SET module = %s WHERE module = %s 
2013-07-03 03:38:08,724 7703 DEBUG b6 OpenUpgrade: 0 rows affected
2013-07-03 03:38:08,724 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_module_module SET name = %s WHERE name = %s
2013-07-03 03:38:08,725 7703 DEBUG b6 OpenUpgrade: 1 rows affected
2013-07-03 03:38:08,725 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_model_data SET module = %s WHERE module = %s 
2013-07-03 03:38:08,725 7703 DEBUG b6 OpenUpgrade: 0 rows affected
2013-07-03 03:38:08,752 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_module_module SET name = %s WHERE name = %s
2013-07-03 03:38:08,753 7703 DEBUG b6 OpenUpgrade: 1 rows affected
2013-07-03 03:38:08,764 7703 DEBUG b6 OpenUpgrade: Running UPDATE ir_model_data SET module = %s WHERE module = %s 
2013-07-03 03:38:08,764 7703 DEBUG b6 OpenUpgrade: 80 rows affected
2013-07-03 03:38:08,764 7703 INFO b6 OpenUpgrade: table ir_actions_todo: drop column action_id
2013-07-03 03:38:08,767 7703 INFO b6 OpenUpgrade: table res_users, column date: renaming to login_date
2013-07-03 03:38:08,769 7703 INFO b6 OpenUpgrade: table res_users, column user_email: renaming to openupgrade_legacy_7_0_user_email
2013-07-03 03:38:08,771 7703 INFO b6 OpenUpgrade: model ir.actions.url: renaming to ir.actions.act_url
2013-07-03 03:38:08,913 7703 INFO b6 openerp.modules.module: module base: creating or updating database tables
2013-07-03 03:38:09,193 7703 INFO b6 openerp.osv.orm: Computing parent left and right for table ir_ui_menu...
2013-07-03 03:38:09,794 7703 WARNING b6 openerp.osv.orm: WARNING: unable to set column action_id of table ir_actions_todo not null !
Try to re-run: openerp-server --update=module
If it doesn't work, update records and execute manually:
ALTER TABLE ir_actions_todo ALTER COLUMN action_id SET NOT NULL
2013-07-03 03:38:17,057 7703 INFO b6 openerp.osv.orm: column logo (Logo) in table res_company removed: converted to a function !

2013-07-03 03:38:17,354 7703 INFO b6 openerp.osv.orm: storing computed values of fields.function 'needaction_enabled'
2013-07-03 03:38:17,471 7703 INFO b6 openerp.osv.orm: storing computed values of fields.function 'logo_web'
2013-07-03 03:38:17,473 7703 INFO b6 openerp.osv.orm: storing computed values of fields.function 'image_medium'
2013-07-03 03:38:17,760 7703 INFO b6 openerp.osv.orm: storing computed values of fields.function 'image_small'
2013-07-03 03:38:18,075 7703 INFO b6 openerp.modules.loading: module base: loading base_data.xml
2013-07-03 03:38:18,093 7703 INFO b6 openerp.modules.loading: module base: loading currency_data.xml
2013-07-03 03:38:19,743 7703 INFO b6 openerp.modules.loading: module base: loading res/res_country_data.xml
2013-07-03 03:38:20,227 7703 INFO b6 openerp.modules.loading: module base: loading security/base_security.xml
2013-07-03 03:38:20,279 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:20,281 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:20,283 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:20,338 7703 INFO b6 openerp.modules.loading: module base: loading base_menu.xml
2013-07-03 03:38:20,542 7703 INFO b6 openerp.modules.loading: module base: loading res/res_security.xml
2013-07-03 03:38:20,549 7703 INFO b6 openerp.modules.loading: module base: loading res/res_config.xml
2013-07-03 03:38:20,585 7703 INFO b6 openerp.modules.loading: module base: loading data/res.country.state.csv
2013-07-03 03:38:20,758 7703 INFO b6 openerp.modules.loading: module base: loading ir/wizard/wizard_menu_view.xml
2013-07-03 03:38:20,773 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_actions.xml
2013-07-03 03:38:21,209 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_attachment_view.xml
2013-07-03 03:38:21,280 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_config_parameter_view.xml
2013-07-03 03:38:21,315 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_cron_view.xml
2013-07-03 03:38:21,408 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_filters.xml
2013-07-03 03:38:21,499 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_mail_server_view.xml
2013-07-03 03:38:21,572 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_model_view.xml
2013-07-03 03:38:21,916 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_rule_view.xml
2013-07-03 03:38:22,014 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_sequence_view.xml
2013-07-03 03:38:22,122 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_translation_view.xml
2013-07-03 03:38:22,186 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_ui_menu_view.xml
2013-07-03 03:38:22,242 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_ui_view_view.xml
2013-07-03 03:38:22,362 7703 INFO b6 openerp.modules.loading: module base: loading ir/ir_values_view.xml
2013-07-03 03:38:22,530 7703 INFO b6 openerp.modules.loading: module base: loading ir/osv_memory_autovacuum.xml
2013-07-03 03:38:22,537 7703 INFO b6 openerp.modules.loading: module base: loading ir/report/ir_report.xml
2013-07-03 03:38:22,549 7703 INFO b6 openerp.modules.loading: module base: loading ir/workflow/workflow_view.xml
2013-07-03 03:38:22,860 7703 INFO b6 openerp.modules.loading: module base: loading module/module_view.xml
2013-07-03 03:38:23,011 7703 INFO b6 openerp.modules.loading: module base: loading module/module_data.xml
2013-07-03 03:38:23,138 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,140 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,142 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,183 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,185 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,215 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,252 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,254 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,255 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,319 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,322 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,325 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,355 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,357 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,361 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,425 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,427 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,429 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,473 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,474 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,476 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,545 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_tz' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,555 7703 ERROR b6 openerp.osv.orm: Can't find field 'menu_tips' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,557 7703 ERROR b6 openerp.osv.orm: Can't find field 'context_lang' in the following view parts composing the view of object model 'res.users':
 * res.users.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2013-07-03 03:38:23,570 7703 INFO b6 openerp.modules.loading: module base: loading module/module_report.xml
2013-07-03 03:38:23,579 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_module_import_view.xml
2013-07-03 03:38:23,593 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_module_update_view.xml
2013-07-03 03:38:23,693 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_language_install_view.xml
2013-07-03 03:38:23,750 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_import_language_view.xml
2013-07-03 03:38:23,772 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_module_upgrade_view.xml
2013-07-03 03:38:23,838 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_module_configuration_view.xml
2013-07-03 03:38:23,849 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_export_language_view.xml
2013-07-03 03:38:23,881 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_update_translations_view.xml
2013-07-03 03:38:23,905 7703 INFO b6 openerp.modules.loading: module base: loading module/wizard/base_module_immediate_install.xml
2013-07-03 03:38:23,955 7703 INFO b6 openerp.modules.loading: module base: loading res/res_company_view.xml
2013-07-03 03:38:24,142 7703 INFO b6 openerp.modules.loading: module base: loading res/res_request_view.xml
2013-07-03 03:38:24,182 7703 INFO b6 openerp.modules.loading: module base: loading res/res_lang_view.xml
2013-07-03 03:38:24,258 7703 INFO b6 openerp.modules.loading: module base: loading res/res_partner_report.xml
2013-07-03 03:38:24,276 7703 INFO b6 openerp.modules.loading: module base: loading res/res_partner_view.xml
2013-07-03 03:38:24,469 7703 ERROR b6 openerp.addons.base.ir.ir_ui_view: Can't render view base.view_partner_form for model: res.partner
Traceback (most recent call last):
  File "/opt/openerp/openupgrade-server/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view
    fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
  File "/opt/openerp/openupgrade-server/openerp/addons/base/res/res_partner.py", line 311, in fields_view_get
    res = super(res_partner,self).fields_view_get(cr, user, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 2247, in fields_view_get
    arch=apply_view_inheritance(cr, user, source, sql_res['id']),
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 2205, in apply_view_inheritance
    source = apply_inheritance_specs(source, view_arch, view_id)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 2189, in apply_inheritance_specs
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 2082, in raise_view_error
    %  (child_view.xml_id, self._name, error_msg))
AttributeError: View definition error for inherited view 'base.view_crm_partner_info_History' on model 'res.partner': Element '<xpath expr="/form/notebook/page[@string='History']">' not found in parent view 'base.view_partner_form'
2013-07-03 03:38:24,476 7703 ERROR b6 openerp.tools.convert: Parse error in /opt/openerp/openupgrade-server/openerp/addons/base/res/res_partner_view.xml:123: 
<record id="view_partner_form" model="ir.ui.view">
            <field name="name">res.partner.form</field>
            <field name="model">res.partner</field>
            <field eval="1" name="priority"/>
            <field name="arch" type="xml">
                <form string="Partners" version="7.0">
                <sheet>
                    <field name="image" widget="image" class="oe_left oe_avatar" options="{&quot;preview_image&quot;: &quot;image_medium&quot;, &quot;size&quot;: [90, 90]}"/>
                    <div class="oe_title">
                        <div class="oe_edit_only">
                            <label for="name"/> (
                            <field name="is_company" on_change="onchange_type(is_company)" class="oe_inline"/> <label for="is_company" string="Is a Company?"/>)
                        </div>
                        <h1>
                            <field name="name" default_focus="1" placeholder="Name"/>
                        </h1>
                        <field name="parent_id" placeholder="Company" domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'default_supplier': supplier}" attrs="{'invisible': [('is_company','=', True),('parent_id', '=', False)]}" on_change="onchange_address(use_parent_address, parent_id)"/>
                        <field name="category_id" widget="many2many_tags" placeholder="Tags..."/>
                    </div>
                    <div class="oe_right oe_button_box" name="buttons"> </div>

                    <group>
                        <group>
                            <label for="type" attrs="{'invisible': [('parent_id','=', False)]}"/>
                            <div attrs="{'invisible': [('parent_id','=', False)]}" name="div_type">
                                <field class="oe_inline" name="type"/>
                            </div>

                            <label for="street" string="Address"/>
                            <div>
                                <field name="use_parent_address" class="oe_edit_only oe_inline" on_change="onchange_address(use_parent_address, parent_id)" attrs="{'invisible': [('parent_id','=', False),('use_parent_address','=',False)]}"/>
                                <label for="use_parent_address" class="oe_edit_only" attrs="{'invisible': [('parent_id','=', False),('use_parent_address','=',False)]}"/>
                                <button name="open_parent" type="object" string="(edit company address)" class="oe_link oe_edit_only" attrs="{'invisible': ['|',('parent_id','=', False),('use_parent_address','=',False)]}"/>
                                <field name="street" placeholder="Street..." attrs="{'readonly': [('use_parent_address','=',True)]}"/>
                                <field name="street2" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
                                <div class="address_format">
                                    <field name="city" placeholder="City" style="width: 40%%" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
                                    <field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options="{&quot;no_open&quot;: True}" on_change="onchange_state(state_id)" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
                                    <field name="zip" placeholder="ZIP" style="width: 20%%" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
                                </div>
                                <field name="country_id" placeholder="Country" class="oe_no_button" options="{&quot;no_open&quot;: True}" attrs="{'readonly': [('use_parent_address','=',True)]}"/>
                            </div>
                            <field name="website" widget="url" placeholder="e.g. www.openerp.com"/>
                        </group>
                        <group>
                            <field name="function" placeholder="e.g. Sales Director" attrs="{'invisible': [('is_company','=', True)]}"/>
                            <field name="phone" placeholder="e.g. +32.81.81.37.00"/>
                            <field name="mobile"/>
                            <field name="fax"/>
                            <field name="email" widget="email"/>
                            <field name="title" domain="[('domain', '=', 'contact')]" options="{&quot;no_open&quot;: True}" attrs="{'invisible': [('is_company','=', True)]}"/>
                        </group>
                    </group>

                    <notebook colspan="4">
                        <page string="Contacts" attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}" autofocus="autofocus">
                            <field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier}">
                                <kanban>
                                    <field name="color"/>
                                    <field name="name"/>
                                    <field name="title"/>
                                    <field name="email"/>
                                    <field name="parent_id"/>
                                    <field name="is_company"/>
                                    <field name="function"/>
                                    <field name="phone"/>
                                    <field name="street"/>
                                    <field name="street2"/>
                                    <field name="zip"/>
                                    <field name="city"/>
                                    <field name="country_id"/>
                                    <field name="mobile"/>
                                    <field name="fax"/>
                                    <field name="state_id"/>
                                    <field name="has_image"/>
                                    <templates>
                                        <t t-name="kanban-box">
                                            <t t-set="color" t-value="kanban_color(record.color.raw_value)"/>
                                            <div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '')" style="position: relative">
                                                <a t-if="! read_only_mode" type="delete" style="position: absolute; right: 0; padding: 4px; diplay: inline-block">X</a>
                                                <div class="oe_module_vignette">
                                                <a type="open">
                                                    <t t-if="record.has_image.raw_value === true">
                                                        <img t-att-src="kanban_image('res.partner', 'image', record.id.value, {'preview_image': 'image_small'})" class="oe_avatar oe_kanban_avatar_smallbox"/>
                                                    </t>
                                                    <t t-if="record.image and record.image.raw_value !== false">
                                                        <img t-att-src="'data:image/png;base64,'+record.image.raw_value" class="oe_avatar oe_kanban_avatar_smallbox"/>
                                                    </t>
                                                    <t t-if="record.has_image.raw_value === false and (!record.image or record.image.raw_value === false)">
                                                        <t t-if="record.is_company.raw_value === true">
                                                            <img t-att-src="_s + &quot;/base/static/src/img/company_image.png&quot;" class="oe_kanban_image oe_kanban_avatar_smallbox"/>
                                                        </t>
                                                        <t t-if="record.is_company.raw_value === false">
                                                            <img t-att-src="_s + &quot;/base/static/src/img/avatar.png&quot;" class="oe_kanban_image oe_kanban_avatar_smallbox"/>
                                                        </t>
                                                    </t>
                                                </a>
                                                    <div class="oe_module_desc">
                                                        <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_color_border">
                                                            <table class="oe_kanban_table">
                                                                <tr>
                                                                    <td class="oe_kanban_title1" align="left" valign="middle">
                                                                        <h4><a type="open"><field name="name"/></a></h4>
                                                                        <i><div t-if="record.function.raw_value">
                                                                            <field name="function"/></div></i>
                                                                        <div><a t-if="record.email.raw_value" title="Mail" t-att-href="'mailto:'+record.email.value">
                                                                            <field name="email"/>
                                                                        </a></div>
                                                                        <div t-if="record.phone.raw_value">Phone: <field name="phone"/></div>
                                                                        <div t-if="record.mobile.raw_value">Mobile: <field name="mobile"/></div>
                                                                        <div t-if="record.fax.raw_value">Fax: <field name="fax"/></div>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </t>
                                    </templates>
                                </kanban>
                                <form string="Contact" version="7.0">
                                    <sheet>
                                        <field name="image" widget="image" class="oe_avatar oe_left" options="{&quot;preview_image&quot;: &quot;image_medium&quot;}"/>
                                        <div class="oe_title">
                                            <label for="name" class="oe_edit_only"/>
                                            <h1><field name="name" style="width: 70%%"/></h1>
                                            <field name="category_id" widget="many2many_tags" placeholder="Tags..." style="width: 70%%"/>
                                        </div>
                                        <group>
                                            <field name="function" placeholder="e.g. Sales Director"/>
                                            <field name="email"/>
                                            <field name="phone"/>
                                            <field name="mobile"/>
                                        </group>
                                        <div>
                                            <field name="use_parent_address"/><label for="use_parent_address"/>
                                        </div>
                                        <group>
                                            <label for="type"/>
                                            <div name="div_type">
                                                <field class="oe_inline" name="type"/>
                                            </div>
                                            <label for="street" string="Address" attrs="{'invisible': [('use_parent_address','=', True)]}"/>
                                            <div attrs="{'invisible': [('use_parent_address','=', True)]}" name="div_address">
                                                <field name="street" placeholder="Street..."/>
                                                <field name="street2"/>
                                                <div class="address_format">
                                                    <field name="city" placeholder="City" style="width: 40%%"/>
                                                    <field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%%" options="{&quot;no_open&quot;: True}" on_change="onchange_state(state_id)"/>
                                                    <field name="zip" placeholder="ZIP" style="width: 20%%"/>
                                                </div>
                                                <field name="country_id" placeholder="Country" class="oe_no_button" options="{&quot;no_open&quot;: True}"/>
                                            </div>
                                        </group>
                                        <field name="supplier" invisible="True"/>
                                    </sheet>
                                </form>
                            </field>
                        </page>
                        <page string="Internal Notes">
                            <field name="comment" placeholder="Put an internal note..."/>
                        </page>
                        <page string="Sales &amp; Purchases">
                            <group>
                                <group>
                                    <field name="user_id"/>
                                    <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                </group>
                                <group>
                                    <field name="customer"/>
                                    <field name="supplier"/>
                                </group>
                                <group>
                                    <field name="ref"/>
                                    <field name="lang"/>
                                    <field name="date"/>
                                </group>
                                <group>
                                    <field name="active"/>
                                </group>
                            </group>
                        </page>
                        <!-- The History page becomes visible as soon as there is something to display inside -->
                        <page string="History" name="page_history" invisible="True">
                        </page>
                    </notebook>
                </sheet>
                </form>
            </field>
        </record>
Traceback (most recent call last):
  File "/opt/openerp/openupgrade-server/openerp/tools/convert.py", line 850, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp/openupgrade-server/openerp/tools/convert.py", line 817, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/openerp/openupgrade-server/openerp/addons/base/ir/ir_model.py", line 942, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/opt/openerp/openupgrade-server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
    return super(view, self).write(cr, uid, ids, vals, context)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 4222, in write
    self._validate(cr, user, ids, context)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 1553, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
2013-07-03 03:38:24,494 7703 ERROR b6 openerp: Failed to initialize database `b6`.
Traceback (most recent call last):
  File "/opt/openerp/openupgrade-server/openerp/cli/server.py", line 98, in preload_registry
    db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
  File "/opt/openerp/openupgrade-server/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/opt/openerp/openupgrade-server/openerp/modules/registry.py", line 192, in get
    update_module)
  File "/opt/openerp/openupgrade-server/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/openupgrade-server/openerp/modules/loading.py", line 332, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report, registry=registry)
  File "/opt/openerp/openupgrade-server/openerp/modules/loading.py", line 209, in load_module_graph
    load_data(module_name, idref, mode)
  File "/opt/openerp/openupgrade-server/openerp/modules/loading.py", line 77, in <lambda>
    load_data = lambda *args: _load_data(cr, *args, kind='data')
  File "/opt/openerp/openupgrade-server/openerp/modules/loading.py", line 128, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/opt/openerp/openupgrade-server/openerp/tools/convert.py", line 957, in convert_xml_import
    obj.parse(doc.getroot())
  File "/opt/openerp/openupgrade-server/openerp/tools/convert.py", line 850, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp/openupgrade-server/openerp/tools/convert.py", line 817, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/openerp/openupgrade-server/openerp/addons/base/ir/ir_model.py", line 942, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/opt/openerp/openupgrade-server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
    return super(view, self).write(cr, uid, ids, vals, context)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 4222, in write
    self._validate(cr, user, ids, context)
  File "/opt/openerp/openupgrade-server/openerp/osv/orm.py", line 1553, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')


-- 
You received this question notification because you are a member of
OpenUpgrade Drivers, which is an answer contact for OpenUpgrade Server.