← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 738373] Re: [6.0] o2m widget does not refresh children when clicking next/previous

 

may be this could be  a reason

'sum_fy_period_ids'  :
one2many_periods('account.account_fy_period_sum','id','Fiscal Year
Period Sum', readonly=True, ),

and

class account_fiscalyear_sum(osv.osv):
    _name = "account.account_fiscalyear_sum"
    _description = "Account Fiscalyear Sum"
    _auto = False

    # to avoid view_id
    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] = []
            fy = pooler.get_pool(cr.dbname).get('account.account_fiscalyear_sum').browse(cr, user, ids, context=context)[0]

            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
            #  set missing
    # end class one2many_periods

it looks that this is only invoked when changing from list to form , but
not when clicking next/previous in the master record

** Changed in: openobject-client
       Status: Invalid => 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/738373

Title:
  [6.0] o2m widget does not refresh children when clicking next/previous

Status in OpenERP GTK Client:
  New

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