c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #31330
[Bug 738373] Re: [6.0] o2m widget does not refresh children when clicking next/previous
Hello DR Ferdinand,
I have tested your bug specification with your suggested code but I have
found some problem in your code.
So I would like to suggest, you can try with the following code,
class one2many_periods (fields.one2many):
def get (self, cr, obj, ids, name, user=None, offset=0, context=None, values={}):
res = {}
for id in ids :
res[id] = []
print "ID",id
fy = pooler.get_pool(cr.dbname).get('account.account_fiscalyear_sum').browse(cr, user, id, context=context)
ids2 = obj.pool.get (self._obj).search \
( cr
, user
, [ ('company_id', '=', fy.company_id.id)
, ('account_id', '=', fy.account_id.id)
, ('fiscalyear_id', '=', fy.fiscalyear_id.id)
]
, limit = self._limit
)
for r in ids2:
#print >> sys.stderr,'r_ids2 ', r
res [fy.id].append( r )
return res
I have tested with this code and all are working as expected.
So would you please check with this given code and notify us have you still faced the problem or not?
Thanks and waiting for your reply!
** Changed in: openobject-client
Status: New => Invalid
--
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/738373
Title:
[6.0] o2m widget does not refresh children when clicking next/previous
Status in OpenERP GTK Client:
Invalid
Bug description:
situation
object
|
childs level 1
|
childs level 2
click on a child level 1 openes a popup with correct data, open childs
level 2 inline and navigate at level 1 does not refresh childs at
level 2
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/738373/+subscriptions
References