odoo/odoo#190031

Created by Bugfix, Levi Siuzdak
Merged at 086da10e946d02091242fa8cc11b836e84ae5212

Statuses:

label
odoo-dev:16.0-opw-4260006-credit_limit_no_demo_test-sile
head
1bdb7d16609f6a42eed2df8170c492f20a95f733
merged
6 months ago by Sales, Victor Feyens (vfe)
odoo/odoo
16.0 #190031
17.0 #190199
saas-17.2 #190217
saas-17.4 #190237
18.0 #190250
saas-18.1
saas-18.2
saas-18.3
master #190264

[FIX] sale_management: test reload template translations w/out demo data

Versions

  • 16.0+

Steps

  1. Run test_reload_template_translations without demo data.

Issue

> AssertionError: sale_order_template_id was not found in the view

Cause

The sale_order_template_id field requires the user to have the sale_management.group_sale_order_template group, which they don't have by default without demo data.

Solution

Add the group to the current user before running the test.


Runbot: https://runbot.odoo.com/web#id=109475&view_type=form&model=runbot.build.error&menu_id=405&cids=1

opw-4260006