Hello,

In product form there is page called "Accounting". I am trying to hide it using 
below code.

<record id="product_normal_form_view_as" model="ir.ui.view">
            <field name="name">product.normal.form.as.inherit</field>
            <field name="model">product.product</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="account.product_normal_form_view"/>
            <field name="arch" type="xml">
                                <page position="replace" string="Accounting">
                                </page>
           </field>
</record>

I have already inherited some page using above manner. But when i am trying to 
inherit product view, i am getting below error,

ERROR : Couldn't find tag '<field name="property_account_expense">' in parent 
view !
Stack Trace : 

Environment Information : 
System : Linux-2.6.27-14-generic-i686-with-debian-lenny-sid
OS Name : posix
Distributor ID: Ubuntu
Description:    Ubuntu 8.10
Release:        8.10
Codename:       intrepid
Operating System Release : 2.6.27-14-generic
Operating System Version : #1 SMP Tue Aug 18 16:25:45 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.5.2
OpenERP-Client Version : 5.0.3
Last revision No. & ID : 984 [email protected]
Traceback (most recent call last):
  File "/home/deven/workspace/server/bin/netsvc.py", line 242, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/deven/workspace/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/deven/workspace/server/bin/service/web_services.py", line 583, in 
execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/deven/workspace/server/bin/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/deven/workspace/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/deven/workspace/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/deven/workspace/server/bin/addons/stock/product.py", line 175, in 
fields_view_get
    res = super(product_product,self).fields_view_get(cr, uid, view_id, 
view_type, context, toolbar)
  File "/home/deven/workspace/server/bin/osv/orm.py", line 1217, in 
fields_view_get
    result['arch'] = _inherit_apply_rec(result['arch'], sql_res[3])
  File "/home/deven/workspace/server/bin/osv/orm.py", line 1213, in 
_inherit_apply_rec
    result = _inherit_apply(result, inherit)
  File "/home/deven/workspace/server/bin/osv/orm.py", line 1173, in 
_inherit_apply
    raise AttributeError(_("Couldn't find tag '%s' in parent view !") % tag)
AttributeError: Couldn't find tag '<field name="property_account_expense">' in 
parent view !
-------------------------------------------------------------

Can anyone please help me to solve this error?
Waiting for the valuable reply.
Thanks in advance.

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




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

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

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


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

Reply via email to