Here my xml file:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="replace_paper_format_euro" inherit_id="report.paperformat_euro">
<xpath expr="//field[@name='margin_left']" position="replace">
<field name="margin_left">22</field>
</xpath>
</template>
</data>
</openerp>
Error:
ParseError: "ValidateError
Field(s) `arch` failed against a constraint: Invalid view definition
Error details:
Element '<xpath expr="//field[@name='margin_left']">' cannot be located in parent view
Both, solution and comment below work perfectly ! Thanks to all