c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #14299
[Bug 709041] Re: [6.0.1] account_simulation with old reference to update_posted
Hello,
I have checked the issue in stable 6.0 but did not get such error while
opening the journal view.
Traceback suggests that "update_posted" is not available in parent view.
In account_simulation_view.xml view with the
id="view_account_journal_form_inherit_simul" has not any action, So that
code will never get execution.
You may customize the module at your side for making an action of that
window and change suggest by you in bug specification will work as the
field is in parent view.
Hope you will agree with this, So I am closing this bug for now.
Thanks.
** Changed in: openobject-addons
Status: New => Invalid
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/709041
Title:
[6.0.1] account_simulation with old reference to update_posted
Status in OpenERP Modules (addons):
Invalid
Bug description:
bzr revno: 5184 on extra-addons
when installing account_simulation and trying to open the journal view, I get the following message:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/orm.py", line 1590, in fields_view_get
result['arch'] = _inherit_apply_rec(inherit_result, sql_res[3])
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/orm.py", line 1585, in _inherit_apply_rec
result = _inherit_apply(result, inherit, id)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/orm.py", line 1527, in _inherit_apply
raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/osv/orm.py", line 1441, in raise_view_error
'model': self._name, })
AttributeError: View definition error for inherited view 'account_simulation.view_account_journal_form_inherit_simul' on 'account.journal' model: Element '<field name="update_posted">' not found in parent view 'account.view_account_journal_form'
[2011-01-28 12:46:05,262][elico] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/service/netrpc_server.py", line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/usr/local/lib/python2.6/dist-packages/openerp-server_9000/netsvc.py", line 499, in dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
I changed
<record model="ir.ui.view" id="view_account_journal_form_inherit_simul">
<field name="name">account.journal.simulation.form.inherit</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="type">form</field>
<field name="arch" type="xml">
<field name="update_posted" position="after">
<field name="state"/>
</field>
</field>
</record>
to
<record model="ir.ui.view" id="view_account_journal_form_inherit_simul">
<field name="name">account.journal.simulation.form.inherit</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="type">form</field>
<field name="arch" type="xml">
<field name="entry_posted" position="after">
<field name="state"/>
</field>
</field>
</record>
Should be enough.
References