Files
odoo_source/addons/website_forum/views/res_users.xml
T
David Monjoie 28c79ec7d0 [IMP][REF] website_forum: added the published mixin. A hook on res.users
has also been added, because the action open_website_url linked to the publish
button is not defined on res.users model (but on its inherited partner).
It now has the method that is routed on its partner.
2015-01-20 17:34:33 +01:00

25 lines
946 B
XML

<?xml version="1.0"?>
<openerp>
<data>
<!-- Update user form !-->
<record id="view_users_form_forum" model="ir.ui.view">
<field name="name">res.users.form.forum</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<field name="signature" position="after">
<field name="karma" string="Forum Karma"/>
</field>
<xpath expr="//div[contains(@class, 'oe_right oe_button_box')]" position="inside">
<button class="oe_inline oe_stat_button" name="open_website_url"
type="object" icon="fa-globe">
<field name="website_published" widget="website_button"/>
</button>
</xpath>
</field>
</record>
</data>
</openerp>