[REN] rename namespace

This commit is contained in:
Flectra committed 2018-01-16 02:34:37 -08:00
1 parent 769eafb483
commit b79252ec3e
4392 files changed
+10147 -10144

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
from . import main
+4 -4
View File
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
import json
from odoo import http
from odoo.http import request
from odoo.tools import misc
from flectra import http
from flectra.http import request
from flectra.tools import misc
class ImportController(http.Controller):
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
from . import base_import
from . import test_models
+7 -7
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
import datetime
import io
@@ -10,11 +10,11 @@ import operator
import os
import re
from odoo import api, fields, models
from odoo.tools.translate import _
from odoo.tools.mimetypes import guess_mimetype
from odoo.tools.misc import ustr
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, pycompat
from flectra import api, fields, models
from flectra.tools.translate import _
from flectra.tools.mimetypes import guess_mimetype
from flectra.tools.misc import ustr
from flectra.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, pycompat
FIELDS_RECURSION_LIMIT = 2
ERROR_PREVIEW_BYTES = 200
@@ -77,7 +77,7 @@ class Import(models.TransientModel):
.. attribute:: name (str)
The field's logical (Odoo) name within the scope of
The field's logical (Flectra) name within the scope of
its parent.
.. attribute:: string (str)
+1 -1
View File
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from odoo import fields, models
from flectra import fields, models
def name(suffix_name):
@@ -1,4 +1,4 @@
odoo.define('base_import.import', function (require) {
flectra.define('base_import.import', function (require) {
"use strict";
var ControlPanelMixin = require('web.ControlPanelMixin');
@@ -1,4 +1,4 @@
odoo.define('base_import.import_buttons', function (require) {
flectra.define('base_import.import_buttons', function (require) {
"use strict";
var KanbanController = require('web.KanbanController');
@@ -8,7 +8,7 @@
<input type="hidden" name="import_id"/>
<div class="oe_import_box col-sm-9">
<div class="col-sm-12">
<p>Select a CSV or Excel file to import. <a href="https://www.odoo.com/documentation/user/11.0/general/base_import/import_faq.html" target="new" class="pull-right">Help</a></p>
<p>Select a CSV or Excel file to import. <a href="https://www.flectra.com/documentation/user/11.0/general/base_import/import_faq.html" target="new" class="pull-right">Help</a></p>
</div>
<div class="col-sm-10">
<div class="input-group">
@@ -80,7 +80,7 @@
id="oe_import_advanced_mode"/>
<label for="oe_import_advanced_mode">Show fields of relation fields (advanced)</label>
<p class="oe_import_noheaders">If the file contains
the column names, Odoo can try auto-detecting the
the column names, Flectra can try auto-detecting the
field corresponding to the column. This makes imports
simpler especially when the file has many columns.</p>
@@ -1,4 +1,4 @@
odoo.define('web.base_import_tests', function (require) {
flectra.define('web.base_import_tests', function (require) {
"use strict";
var KanbanView = require('web.KanbanView');
@@ -106,4 +106,4 @@ QUnit.test('kanban without import button', function(assert) {
kanban.destroy();
});
});
});
+1 -1
View File
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
from . import test_base_import
+6 -6
View File
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
import base64
import io
import unittest
from odoo.tests.common import TransactionCase, can_import
from odoo.modules.module import get_module_resource
from odoo.tools import mute_logger, pycompat
from flectra.tests.common import TransactionCase, can_import
from flectra.modules.module import get_module_resource
from flectra.tools import mute_logger, pycompat
ID_FIELD = {
'id': 'id',
@@ -200,7 +200,7 @@ class TestPreview(TransactionCase):
})
return import_wizard
@mute_logger('odoo.addons.base_import.models.base_import')
@mute_logger('flectra.addons.base_import.models.base_import')
def test_encoding(self):
import_wizard = self.make_import()
result = import_wizard.parse_preview({
@@ -209,7 +209,7 @@ class TestPreview(TransactionCase):
})
self.assertTrue('error' in result)
@mute_logger('odoo.addons.base_import.models.base_import')
@mute_logger('flectra.addons.base_import.models.base_import')
def test_csv_errors(self):
import_wizard = self.make_import()
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<template id="assets_backend" name="base_import assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
@@ -17,4 +17,4 @@
</xpath>
</template>
</data>
</odoo>
</flectra>