hello
here You inherit the purchase_order_line

in .py file

class purchase_order_line(osv.osv):
        _name = 'purchase.order.line'
        _inherit = 'purchase.order.line'
        _columns = {
                       'new_fieldname': fields.char('Test Character field', 
size=64),
        }
purchase_order_line()

and in .xml file

        <record model="ir.ui.view" id="view_purchase_form1">
                <field name="name">res.purchase.orderline.form.inherit</field>
                <field name="model">purchase.order.line</field>
                <field name="type">form</field>
                <field name="inherit_id" 
ref="purchase.purchase_order_line_form"/>
                <field name="arch" type="xml">
                        <field name="product_qty" select="2" position="after">
                                <field name="new_fieldname" colspan="2" />
                                

                        </field>
                </field>
        </record>

This is demo inheritance method 
Hope To work....

thanks and regards
anoop p
ngit India
kochi
india
[EMAIL PROTECTED]




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=23329#23329

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to