← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 694694] [NEW] [6.0RC1] problem with inherit in view

 

Public bug reported:

trying to use trunk version in place of 6.0RC1 Official with own module.
Error in osv/orm.py line 1684.
It seems to receive in view_id two types of values : integer or tuple.
When it's integer, no problem, but don't work with tuple.
Add two print line in function to show parameters : 

type view_id :  <type 'tuple'>
view_is :  (920, u'res.partner.contact.search')
type view_id :  <type 'int'>
type view_id :  <type 'tuple'>
view_is :  (920, u'res.partner.contact.search')
type view_id :  <type 'int'>
type view_id :  <type 'tuple'>
view_is :  (642, u'purchase.order.list.select')
type view_id :  <type 'tuple'>
view_is :  (920, u'res.partner.contact.search')
type view_id :  <type 'int'>

modify bloc to make version run by testing type of view_id, but it is
not the good way.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/694694

Title:
  [6.0RC1] problem with inherit in view

Status in OpenObject Addons Modules:
  New

Bug description:
  trying to use trunk version in place of 6.0RC1 Official with own module.
Error in osv/orm.py line 1684.
It seems to receive in view_id two types of values : integer or tuple.
When it's integer, no problem, but don't work with tuple.
Add two print line in function to show parameters : 

type view_id :  <type 'tuple'>
view_is :  (920, u'res.partner.contact.search')
type view_id :  <type 'int'>
type view_id :  <type 'tuple'>
view_is :  (920, u'res.partner.contact.search')
type view_id :  <type 'int'>
type view_id :  <type 'tuple'>
view_is :  (642, u'purchase.order.list.select')
type view_id :  <type 'tuple'>
view_is :  (920, u'res.partner.contact.search')
type view_id :  <type 'int'>

modify bloc to make version run by testing type of view_id, but it is not the good way.





Follow ups

References