This question has been flagged
1 Reply
2730 Views

I want to add products to  lead creation of crm module(Sale>leads>create>) window, same as in manufacturing > Products > Bill of materils >create.I am new to open erp.Any one please help!!

 

<page string="Components">
                            <field name="bom_lines" widget="one2many_list">
                                <tree string="Components" editable="bottom">
                                    <field name="product_id" context="{'default_supply_method':'produce'}" on_change="onchange_product_id(product_id, name)"/>
                                    <field name="product_qty"/>
                                    <field name="product_uom" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
                                    <field name="name" invisible="1"/>
                                    <field name="date_start"/>
                                    <field name="date_stop"/>
                                </tree>
                            </field>
                        </page>

 

 

Avatar
Discard
Best Answer

What have you done so far? What code was written? Where are you stuck?

Avatar
Discard
Author

Hi Ludo ,thanks for your response. I am still searching how to implement that. This is the code that i found for bill of material(mrp.py) But i didnt understand what they have done here :(. Can you please help :(

Author
Author
Author
Author

Hi ludo, I have updated the question please check