Skip to Content
Menu
This question has been flagged
3 Replies
15686 Views

I need to inherit product.pricelist form view. In this inherited form view I need to add buttons and state in header. But there is no header tag in product.pricelist form view.  

So I used below the code in the inherited form view, but the state showed in the sheet not in the header.

<xpath expr="//field[@name='active']" position="before">

              <header>

              <field name="state" widget="statusbar"/>

              </header>

<xpath>

So how to add header in inherited form view in odoo 10?

Avatar
Discard
Best Answer

Hi,

You can add header to a view  by inheriting like this,

<xpath expr="/form/*" position="before">
<header>
<field name="state" widget="statusbar"/>
</header>
</xpath>
Avatar
Discard
Author

Hi Niyas,

Your answer is perfect. Its work correctly. Thanks.

Best Answer

But it doesn't work in project.project class

Avatar
Discard