← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 772522] Re: [trunk][6.0] osv_memory column handling

 

Ok, I'm adding a test case so this might get some attention. The
attached test module adds two simple wizards which create two dynamic
columns. The object's columns are displayed in the 'Columns' text box
below. To recreate the issue:

 1. Tools -> Test Wizards -> Test Wizard 1
 2. Note that there's the correct columns displayed in the Columns text box
 3. Hit Done or Cancel
 4. Tools -> Test Wizards -> Test Wizard 2
 5. Note that the columns are now test.wizard1 + test.wizard2 columns

This works in reverse as well. You can also add as many wizards as you
like and it will add the columns for each new wizard run.

These are separate objects, so why do they share columns? Am I missing
something obvious?

** Attachment added: "test_wizard.tar.gz"
   https://bugs.launchpad.net/openobject-server/+bug/772522/+attachment/2123129/+files/test_wizard.tar.gz

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

Title:
  [trunk][6.0] osv_memory column handling

Status in OpenERP Server:
  New

Bug description:
  Before I put together a more complicated scenario, maybe someone can
  explain the behaviour I'm seeing if it isn't a bug.

  I have two osv_memory wizards in separate classes which create dynamic
  forms. If I launch WizardA and then launch WizardB, the columns from
  WizardA are now attributes of WizardB as well. So if I print
  self._columns when launching WizardB, I'll see all of it's columns
  plus WizACol1, WizACol2, etc, etc. These don't show up on the form
  itself, but I believe it's causing a couple of issues elsewhere for
  me.

  So... why is WizardB being instantiated with WizardA's columns? The
  columns (should) belong to WizardA, not WizardB or their parent class
  osv_memory. Am I missing something?

  Let me know if a test module is required to demonstrate, or if I'm
  simply missing something obvious. Thanks!


References