Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4100 มุมมอง

We had faced a missleading warning message when we used website_sale in couple with portal.

To reproduce the environment.

  • install website_sale and portal
  • create a new user
  • set it as a sale manager
  • add it in the portal group
  • go to sale menu and create a new article
  • set a name (only required field) and save it.

You should have a double error message with a validateError and an AccessError

selection_001

This message let us think we had issue with UoM validation and/or read access to product.template.

After hours, we just discovered the issue came from an access rule set in portal group [('website_published', '=', True), ("sale_ok", "=", True)]

If the same process is done but you hit the published button (in sale page), the product.template is created properly.

We were largely misguided by the warning message and I wanted to share the knowledge to save hours to other developers.

Do you know any other cases the warning message misslead you?

 

Regards,

Jordi

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Good find. I have not yet come accross an error message that misleaded me.

Perhaps this can be filed on github as a bug? (github.com/odoo)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 16
16964
5
พ.ค. 16
5283
0
มี.ค. 15
4436
2
มี.ค. 15
5425
1
มี.ค. 15
5857