← Back to team overview

openerp-india team mailing list archive

[Bug 1024380] Re: different context passing behavior in view type of form and tree

 

Hi Amit,

Thank you for your quick check.

Actually, I use action server rather than action window when clicking on
an account to call its method (of account.account). I attach you the
image when I press the link. In my test, I pop up context content. In
this case, my model (u.account.org the same as account.account)

I understand your explanation. Please see my attached file.

Thanks

** Attachment added: "context_passing.png"
   https://bugs.launchpad.net/openobject-server/+bug/1024380/+attachment/3235397/+files/context_passing.png

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1024380

Title:
  different context passing behavior in view type of form and tree

Status in OpenERP Server:
  Invalid

Bug description:
  Hi,

  I found a different behavior between view type of form and tree. Here
  is the detail. I'm testing on Account module, Charts > Chart of
  Accounts menu. When click on this menu, a wizard appears asking for
  info. Then click on Open Charts button on wizard form, it will show
  Chart of Accounts in tree view (view type of tree). Key 'periods' is
  passed via context.

  Next, I click on an account in Chart of Account tree view. It will
  open 'account move line' view. While testing this step (I want to pass
  key 'periods' to account move line when opening its view), I find that
  context has no the key 'periods'.

  Now, instead of showing Chart of Accounts tree view from wizard, I let
  it show Chart of Accounts in list view (view type of 'form'). This
  list view contains a button for testing context passing. It shows
  context content when clicking on it (I use raise to do this). I find
  that the key 'periods' is kept.

  So, I dont know this different behavior is intended or not.

  Thanks,

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1024380/+subscriptions


References