Skip to content

Commit

Permalink
[FIX] sale: correctly test all files
Browse files Browse the repository at this point in the history
The rev. 3aa6c94 has recently been forward-ported but was in conflict
with the rev 856c2e9 ; both have created a inherited view to add their
test file in the qunit_suite view.

As both inherited views have the same id, one of the two files was not correctly
loaded in the test suite.
  • Loading branch information
mgeubelle committed Dec 17, 2018
1 parent 1fa10cb commit 9fc69ac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions addons/sale/views/assets.xml
Expand Up @@ -24,15 +24,10 @@
<script type="text/javascript" src="/sale/static/src/js/sale_portal_sidebar.js"></script>
</xpath>
</template>
<template id="qunit_suite" name="product_configurator_tests" inherit_id="web.qunit_suite">
<xpath expr="//t[@t-set='head']" position="inside">
<script type="text/javascript" src="/sale/static/tests/product_configurator.test.js"></script>
</xpath>
</template>

<template id="qunit_suite" name="sales_team_dashboard_tests" inherit_id="web.qunit_suite">
<template id="qunit_suite" name="sale_tests" inherit_id="web.qunit_suite">
<xpath expr="//t[@t-set='head']" position="inside">
<script type="text/javascript" src="/sale/static/tests/sales_team_dashboard_tests.js"></script>
<script type="text/javascript" src="/sale/static/tests/product_configurator.test.js"></script>
</xpath>
</template>
</odoo>

0 comments on commit 9fc69ac

Please sign in to comment.