Odoo-8 -- How can I add a button next to the "Create" button in the "Human Resources" -> "Employees" Kanban view? -
unfortunately can't post pictures reputation lower 10. 8-/
in inherited view want add button beside red "create" button in employees kanban view. can reach on menus "human resources"->"employees".
i've searched button in "hr_view.xml" file couldn't find assume isn't part of view reacts on switching through views (kanban list form view) there must relation anywhere!? relation defined?
now tried following code out add simple action button wanted place in (new) "header" of view:
<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <record id="view_kanban_hr_employees_inherited" model="ir.ui.view"> <field name="name">hr - employees kanban extension</field> <field name="model">hr.employee</field> <field name="inherit_id" ref="hr.hr_kanban_view_employees" /> <field name="arch" type="xml"> <field name="name" position="before"> <header> <button string="calculate employee timeaccounts" name="button_calc_employee_timeaccounts" type="object"/> </header> </field> </field> </record> </data> </openerp>
the result every kanban vignette has (small) button no text in it. wanted achieve add 1 button @ th top of page , didn't want add button every single kanban vignette.
does have suggestions me? should insert button?? nicest solution right beside red "create" button on top. mentioned before think isn't part of inheritable view.
seeing forward great solutions , thank reading!
Comments
Post a Comment