Permalink
Browse files

[REF] document, attachment_indexation*: replaces old references to do…

…cument

*: hr_recruitment, web, website_sale_digital

This commit replaces the references to 'document' by 'attachment_indexation'
following the rename of the module.
  • Loading branch information...
ThanhDodeurOdoo committed Dec 6, 2018
1 parent d7c2ce3 commit 6eb85b001344de6268d6542d0b828d402897ffe3
@@ -12,7 +12,7 @@
""",
'depends': ['web'],
'data': [
'views/document_templates.xml',
'views/attachment_indexation_templates.xml',
],
'installable': True,
}
@@ -1,4 +1,4 @@
odoo.define('document.document', function (require) {
odoo.define('attachment_indexation.document', function (require) {
"use strict";
var core = require('web.core');
@@ -1,4 +1,4 @@
odoo.define('document.tests', function (require) {
odoo.define('attachment_indexation.tests', function (require) {
"use strict";
var testUtils = require('web.test_utils');
@@ -7,7 +7,7 @@ odoo.define('document.tests', function (require) {
var createView = testUtils.createView;
QUnit.module('DocumentTest', {
QUnit.module('AttachmentIndexationTest', {
beforeEach: function () {
this.data = {
partner: {
@@ -47,7 +47,7 @@ odoo.define('document.tests', function (require) {
}
}, function () {
QUnit.module('DocView');
QUnit.test('documentAttachmentTest', function (assert) {
QUnit.test('AttachmentIndexationAttachmentTest', function (assert) {
assert.expect(3);
var form = createView({
@@ -2,13 +2,13 @@
<odoo>
<template id="assets_backend" name="document assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/document/static/src/js/document.js"></script>
<script type="text/javascript" src="/attachment_indexation/static/src/js/attachment_indexation.js"></script>
</xpath>
</template>
<template id="qunit_suite" name="document tests" inherit_id="web.qunit_suite">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/document/static/tests/document_tests.js"/>
<script type="text/javascript" src="/attachment_indexation/static/tests/attachment_indexation_tests.js"/>
</xpath>
</template>
</odoo>
@@ -14,7 +14,7 @@
'calendar',
'fetchmail',
'utm',
'document',
'attachment_indexation',
'web_tour',
'digest',
],
@@ -4891,7 +4891,7 @@ QUnit.module('Views', {
// if not only 2 dropdowns are displayed.
var $dropdowns = $('.o_web_client .o_control_panel .btn-group .o_dropdown_toggler_btn');
var $actions = $('.o_web_client .o_control_panel .btn-group .dropdown-menu')[1].children;
if ('document.document' in odoo.__DEBUG__.services) {
if ('attachment_indexation.document' in odoo.__DEBUG__.services) {
assert.strictEqual($dropdowns.length, 3,
"there should be 3 dropdowns (print, attachment, action) in the toolbar.");
$actions = $('.o_web_client .o_control_panel .btn-group .dropdown-menu')[2].children;
@@ -10,7 +10,7 @@
Once the order is paid, the file is made available in the order confirmation page and in the customer portal.
""",
'depends': [
'document',
'attachment_indexation',
'website_sale',
],
'installable': True,

0 comments on commit 6eb85b0

Please sign in to comment.