Dear All, Please let me know, how to display, A Tree view (which is able to add new lines) inside a notebook page. Like, in purchase requisition we add the products to be purchased, as line by line. Im using V7.
You can add tree view inside page like this,
<record id="form_id" model="ir.ui.view"> <field name="name">object.object.form</field> <field name="model">object.object</field> <field name="arch" type="xml"> <form string="Form String" version="7.0"> <header> </header> <sheet> <div class="oe_title"> </div> <notebook> <page string="Page String"> <field name="one2many_field"> <tree string="Tree String"> <field name="name"/> <field name="date_planned"/> <field name="price_subtotal"/> </tree> </field> </page> </notebook> </sheet> </form> </field> <record/>
Dear Keyur, Thank you for the reply. I need to have an extra notebook_PAGE in hr_employee. The new page is to Store some extra data, which has to be added frequently(may be twice in a month).
For that, I created a new module say, hr_extended. In that I inherited the hr_employee. And in the view file, added the my new Page, aslo. That all worked fine.
Now, what I want is. The data which I want to store should come as a table view under the new Page. So that I can see the previous datas also. To capture the new data, a new model should be created right? like sale_order_lines comes in slae_order. But, how to display this new model's data in my hr_extended module? Awaiting your reply..
About This Community
|Asked: 7/1/13, 5:15 AM|
|Seen: 6354 times|
|Last updated: 10/21/15, 6:28 AM|