Hello,

I am trying to adding a "Note" field in "Unit of Measure" form. I am doing 
following things..

.py file code:

class product_uom(osv.osv):
    _inherit="product.uom"
    _columns = {
        'product_uom_notes':fields.text('Notes')
    }
product_uom()

.xml file code:

<record id="product_uom_form_view_notes" model="ir.ui.view">
            <field name="name">product.uom.form.notes</field>
            <field name="model">product.uom</field>
            <field name="type">form</field>
   <field name="inherit_id" ref="product.product_uom_form_view"/>
            <field name="arch" type="xml">
    <field name="active" position="after">
     <separator colspan="2" string="Note" />
     <field name="product_uom_notes" colspan="2" nolabel="1"/>
    </field>
     </field>
</record>

But when i perform above steps its generate me below error.
-----------------------------------------------
View error

Can't find field 'product_uom_notes' in the following view parts composing the 
view of object model 'product.uom':
 * product.uom.form.notes

Either you wrongly customised this view, or some modules bringing those views 
are not compatible with your current data model
-------------------------

Please kindly help me to solve this error.

------------------------
Sincerely,
Deven
www.4colordesign.com




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

--
http://www.openobject.com/forum/viewtopic.php?p=42669#42669

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


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

Reply via email to