openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #20400
[Bug 1093784] Re: 7.0 must not allow loading incorrect xpath expression
Here comes a simple test case attached
this module
* can be installed from command line with --init=account_invoice_refund and
* will fail using --update=account_invoice_refund
hence loading modules can create inconsistent / erroneous data base
states
** Attachment added: "faulty module"
https://bugs.launchpad.net/openobject-server/+bug/1093784/+attachment/3468347/+files/account_invoice_refund.tar.gz
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1093784
Title:
7.0 must not allow loading incorrect xpath expression
Status in OpenERP Server:
New
Bug description:
Hello
it seems to be possible to load invalid xpath expressions, which are
only validated during next update BEFORE the new correct xpath is
loaded.
the only way to fix this is to delete the view definition manually in
the UI.
the error messages is a bit miss leading - it mentions the wrong xpath
line, but then it shows the first view definition of the file
regardless if this one is the one causing the problem or not.
Example
- <xpath expr="/form/notebook/page[@string='Cash Transactions']/field/form/group/field[@name='account_id']" position="replace">
+ <xpath expr="/form/sheet/notebook/page[@string='Cash Transactions']/field/form/group/field[@name='account_id']" position="replace">
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1093784/+subscriptions
References