odoo-product-configurator icon indicating copy to clipboard operation
odoo-product-configurator copied to clipboard

Wizard - fields_get and fields_view_get caching

Open richard-willdooit opened this issue 7 years ago • 0 comments

Impacted versions:

10.0

Steps to reproduce:

Create a template:

  • Attribute 1: Colour: Blue / Green
  • Attribute 2: Size: S / M / L
  • Attribute 3: Width: A / B
  • Config Step 1: Colour
  • Config Step 2: Size
  • Config Step 3: Width
  • Config Restriction: Attribute Size, Value M, domain Colour == Blue

Current behavior:

Scenario 1:

  • Configure Product
  • Choose Template
  • Step 1: Choose Colour Blue
  • Step 2: Note on pull down domain is (correctly) S/M/L

Scenario 2:

  • Configure Product
  • Choose Template
  • Step 1: Choose Colour Green
  • Step 2: Note on pull down domain is (correctly) S/L

Scenario 3:

  • Configure Product
  • Choose Template
  • Step 1: Choose Colour Green
  • Step 2: Note on pull down domain is (correctly) S/L
  • Go back to Step 1
  • Choose Colour Blue
  • Step 3: Note on pull down domain is still (incorrectly) S/L

Putting debugs in fields_get and fields_view_get in product_configurator, I have determined that they are being called at the start of step 1, and the start of step 2, but not when going back, and not when going from 1 to 2 the second time. And interestingly, not when going from 2 to 3!!

Expected behavior:

Video/Screenshot link (optional):

richard-willdooit avatar Apr 05 '17 05:04 richard-willdooit