7.0 pxgo_cash_statement crash at install

Bug #1296719 reported by Alexandre Fayolle - camptocamp on 2014-03-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Additional payment, bank statement and voucher addons for OpenERP
High
Alexandre Fayolle - camptocamp

Bug Description

on a fresh 7.0 database:

2014-03-24 13:19:28,194 25789 INFO test_ocb_oca70 openerp.modules.loading: module pxgo_cash_statement: loading cash_statement_view.xml
2014-03-24 13:19:28,205 25789 WARNING test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Setting the `type` field is deprecated in the `ir.ui.view` model.
2014-03-24 13:19:28,229 25789 WARNING test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Setting the `type` field is deprecated in the `ir.ui.view` model.
2014-03-24 13:19:28,304 25789 WARNING test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Setting the `type` field is deprecated in the `ir.ui.view` model.
2014-03-24 13:19:28,323 25789 ERROR test_ocb_oca70 openerp.osv.orm: Can't find field 'reconcile_id' in the following view parts composing the view of object model 'account.bank.statement':
 * account.cash.statement.form

Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
2014-03-24 13:19:28,326 25789 ERROR test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Can't render view for model: account.bank.statement
Traceback (most recent call last):
  File "/home/afayolle/work/oerp/server/ocb-7.0/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 "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 2273, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1926, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1872, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1789, in __view_look_dom
    xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1950, in __view_look_dom_arch
    raise except_orm('View error', msg)
except_orm: ('View error', u"Can't find field 'reconcile_id' in the following view parts composing the view of object model 'account.bank.statement':\n * account.cash.statement.form\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")
2014-03-24 13:19:28,333 25789 ERROR test_ocb_oca70 openerp.tools.convert: Parse error in /home/afayolle/work/oca/account-payment/7.0/pxgo_cash_statement/cash_statement_view.xml:55:
<record id="view_cash_statement_form" model="ir.ui.view">
            <field name="name">account.cash.statement.form</field>
            <field name="model">account.bank.statement</field>
            <field name="type">form</field>
            <field name="priority" eval="20"/>
            <field name="arch" type="xml">
                <form string="Cash Statement">
                    <field name="name" select="1"/>
                    <field name="date" select="1" on_change="cash_statement_on_change_date(date)"/>
                    <field name="journal_id" on_change="onchange_journal_id(journal_id)" select="1" domain="[('show_in_cash_statements', '=', True)]"/>
                    <field name="currency"/>
                    <field name="period_id" select="2" invisible="1"/>
                    <newline/>
                    <field name="balance_start"/>
                    <field name="balance_end_real"/>
                    <field colspan="4" name="line_ids" nolabel="1">
                        <tree editable="bottom" string="Cash Statement lines">
                            <field name="date"/>
                            <field name="type" invisible="1"/>
                            <field name="line_type_id" widget="selection" on_change="cash_line_on_change_line_type_id(partner_id, type, line_type_id)"/>
                            <field name="name"/>
                            <field name="amount" on_change="cash_line_on_change_amount(line_type_id,amount)"/>
                            <field name="partner_id" on_change="cash_line_on_change_partner_id(type,partner_id)"/>
                            <field name="account_id" invisible="1" domain="[('journal_id','=',parent.journal_id)]"/>
                            <field name="ref" invisible="1"/>
                            <field name="reconcile_id" invisible="1" context="{'partner_id':partner_id,'amount':amount,'account_id':account_id,'currency_id': parent.currency,'journal_id':parent.journal_id, 'date':date}"/>
                            <field invisible="1" name="reconcile_amount"/>
                        </tree>
                        <form string="Cash Statement lines">
                            <field name="date"/>
                            <field name="name"/>
                            <field name="line_type_id" widget="selection" on_change="cash_line_on_change_line_type_id(partner_id, type, line_type_id)"/>
                            <field name="type" invisible="1"/>
                            <field name="partner_id" on_change="cash_line_on_change_partner_id(type,partner_id)"/>
                            <field name="account_id" domain="[('journal_id','=',parent.journal_id)]"/>
                            <field name="amount" on_change="cash_line_on_change_amount(line_type_id,amount)"/>
                            <field name="reconcile_id" context="{'partner_id':partner_id,'amount':amount,'account_id':account_id,'currency_id': parent.currency,'journal_id':parent.journal_id, 'date':date}"/>
                            <field name="ref"/>
                            <separator colspan="4" string="Notes"/>
                            <field colspan="4" name="note" nolabel="1"/>
                        </form>
                    </field>
                    <group col="7" colspan="4">
                        <field name="state" select="2"/>
                        <field name="balance_end"/>
                        <button name="button_dummy" states="draft" string="Calculate" icon="gtk-execute"/>
                        <button name="button_confirm" states="draft" string="Confirm" type="object" icon="gtk-ok"/>
                        <button name="button_cancel" states="confirm" string="Cancel" type="object" icon="gtk-cancel"/>
                    </group>
                </form>
            </field>
        </record>
Traceback (most recent call last):
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 814, 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 "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_model.py", line 969, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_ui_view.py", line 103, in create
    return super(view, self).create(cr, uid, values, context)
  File "/home/afayolle/work/oca/openerp-connector/7.0/connector/producer.py", line 42, in create
    record_id = create_original(self, cr, uid, vals, context=context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 4543, in create
    self._validate(cr, user, [id_new], context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1557, 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!')
Traceback (most recent call last):
  File "bin/openerp_command", line 65, in <module>
    openerpcommand.main.run()
  File "/home/afayolle/work/oerp/testbox-ocb+oca/openerp-command/openerpcommand/main.py", line 7, in run
    args.run(args)
  File "/home/afayolle/work/oerp/testbox-ocb+oca/openerp-command/openerpcommand/initialize.py", line 74, in run
    registry = install_openerp(args.database, not args.no_create, module_names, not config['without_demo'])
  File "/home/afayolle/work/oerp/testbox-ocb+oca/openerp-command/openerpcommand/initialize.py", line 24, in install_openerp
    database_name, update_module=True, force_demo=install_demo_data)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/registry.py", line 203, in get
    update_module)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/registry.py", line 233, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 354, in load_modules
    loaded_modules, update_module)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 187, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 74, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 954, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 814, 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 "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_model.py", line 969, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_ui_view.py", line 103, in create
    return super(view, self).create(cr, uid, values, context)
  File "/home/afayolle/work/oca/openerp-connector/7.0/connector/producer.py", line 42, in create
    record_id = create_original(self, cr, uid, vals, context=context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 4543, in create
    self._validate(cr, user, [id_new], context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1557, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
openerp.osv.orm.except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

Related branches

Changed in account-payment:
importance: Undecided → High
Changed in account-payment:
assignee: nobody → Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c)
Changed in account-payment:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers