← Back to team overview

openerp-india team mailing list archive

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

 

Public bug reported:

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,

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

-- 
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:
  New

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


Follow ups

References