I need a graph in the "hr.employee" model, on a one2many field (contract_ids). I need to print the "date_start" and the "wage" for each employee in a graph of the "hr.employee" view, but this attributes are in the "hr.contract" model. I can access to this attributes by the field "contract_ids", but i don't know how to add this graph to my hr.model!
For example, this is what i try in XML :
<record model="ir.ui.view" id="hr_employee_view_graph">
<field name="arch" type="xml">
<graph string="Actuals wages" type="area">
I really don't know how to print in a graph some information from a one2many field in a model ... Did you have any idea please?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/20/14, 5:04 AM|
|Seen: 1216 times|
|Last updated: 3/16/15, 8:10 AM|