I want to add a tree view inside my wizard.I tried like this:
<record id="view_immediate_transfer" model="ir.ui.view">
<field name="name">xn_quotation_creation_wiz2</field>
<field name="model">xn_quotation_creation_wiz</field>
<field name="arch" type="xml">
<form string="Warning">
<group>
<field name = "xn_customer_id" />
</group>
<group>
<tree editable = "top">
<group>
<field name="product"/>
<field name="qty"/>
</group>
</tree>
</group>
<footer>
<button name="save_button" string="Save" type="object" class="btn-primary"/>
</footer>
</form>
</field>
But the fields given in tree view are showing like a form view.What to do..?
(I want to populate this fields from product master.)
Python
class QuotationCreation2(models.TransientModel):
_name = "xn_quotation_creation_wiz"
xn_customer_id = fields.Many2one('res.partner',string = "Customer")
product=fields.Many2one('product.product',string='Product')
qty=fields.Integer(string='Quantity')