Problem with related fields
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Low
|
OpenERP's Framework R&D |
Bug Description
client 6.1 rev. 1928
server 6.1 rev. 3520
Extension of the class product_
"prod code" ----- will show the items which the supplier delivers
"price" ----- to show the price of the first article in the supplierpartner form
With the new column "price" in object product_
class product_
_name = "product.
_inherit = "product.
_columns = {
'prod_code' : fields.
'price' : fields.
}
product_
Extension of product-formview
<record id="product_
<field name="name"
<field name="model"
<field name="type"
<field name="priority" eval="1"/>
<field name="arch" type="xml">
-------> <field name="price"/>
</record>
With above formextension i get this error:
Environment Information :
System : Linux-2.
OS Name : posix
Operating System Release : 2.6.35.
Operating System Version : #1 SMP Sat May 21 17:39:42 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : de_DE.UTF8
Python Version : 2.7.0
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :1928 <email address hidden>
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
xarch, xfields = self.__
File "/home/
fields_def = self.__
File "/home/
fields.
File "/home/
field = model_fields[
KeyError: 'price'
Extension of partner form:
<record id="supplier_
<field name="name"
<field name="model"
<field name="type"
<field name="arch" type="xml">
</record>
<record id="supplier_
<field name="name"
<field name="model"
<field name="type"
<field name="arch" type="xml">
--------> <field name="prod_code"/>
</record>
When i press the search button in field prod_code in supplier_
Environment Information :
System : Linux-2.
OS Name : posix
Operating System Release : 2.6.35.
Operating System Version : #1 SMP Sat May 21 17:39:42 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : de_DE.UTF8
Python Version : 2.7.0
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :1928 <email address hidden>
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
xarch, xfields = self.__
File "/home/
fields_def = self.__
File "/home/
fields.
File "/home/
field = model_fields[
KeyError: 'prod_code'
In Version 6.02 it works.
Related branches
- Olivier Dony (Odoo): Disapprove
- Naresh(OpenERP): Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedopenerp/osv/fields.py (+1/-1)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → Fix Committed |
Hello Manfred Rockel,
I have checked your issued with latest updated code with stable6 and trunk both but I did't face any problem.
I have also apply your end scenario as per your specification and it is working as expected.
Would you please elaborate more on this issue and provide related screenshot or video with proper steps so we can
reproduce same at my end.
Thanks and waiting for your reply.