← Back to team overview

openerp-india team mailing list archive

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

 

Hello Cuong,

I have completely analysed your issue but I think you might have a
misunderstood something.

When you open the chart of account wizard it takes the 'periods' from
the wizard though context and open the account.account object's tree
view which is correct. But when you click on the account (which is link)
it will open the list view of account.move.line which is correct but
here you could not find the period_id because here object is changed ,
So context is passed from one object to another. here context passed
form chart of account wizard to account.account object you can not again
passed this to account.move.line object cause account.account object
doesn't have period_id field. So at where you will get the value?

I think you have misunderstand the thing which is when open the wizard
it will open tree view of account.account and when you pressed the
account link it will open account.move.line, So we never kept the
context at third object.

So this is not a bug and I am closing this issue.

Thanks for undersatnding!

** Changed in: openobject-server
       Status: New => Invalid

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