From 509d9341919b5251229c3d76a5a6c9d13db19183 Mon Sep 17 00:00:00 2001 From: Flectra Date: Wed, 17 Jan 2018 23:27:06 -0800 Subject: [PATCH] [REN] namespace rename --- flectra/cli/templates/default/__manifest__.py.template | 2 +- .../cli/templates/default/controllers/controllers.py.template | 2 +- flectra/cli/templates/default/demo/demo.xml.template | 4 ++-- flectra/cli/templates/default/models/models.py.template | 2 +- flectra/cli/templates/default/views/templates.xml.template | 4 ++-- flectra/cli/templates/default/views/views.xml.template | 4 ++-- flectra/modules/module.py | 4 ++-- flectra/osv/osv.py | 2 +- flectra/service/common.py | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/flectra/cli/templates/default/__manifest__.py.template b/flectra/cli/templates/default/__manifest__.py.template index 024d23c7..ebf815be 100644 --- a/flectra/cli/templates/default/__manifest__.py.template +++ b/flectra/cli/templates/default/__manifest__.py.template @@ -14,7 +14,7 @@ 'website': "http://www.yourcompany.com", # Categories can be used to filter modules in modules listing - # Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml + # Check https://github.com/flectra/flectra/blob/master/flectra/addons/base/module/module_data.xml # for the full list 'category': 'Uncategorized', 'version': '0.1', diff --git a/flectra/cli/templates/default/controllers/controllers.py.template b/flectra/cli/templates/default/controllers/controllers.py.template index 0dabc367..877904ba 100644 --- a/flectra/cli/templates/default/controllers/controllers.py.template +++ b/flectra/cli/templates/default/controllers/controllers.py.template @@ -2,7 +2,7 @@ {%- set model = "%s.%s"|format(mod, mod) -%} {%- set root = "/%s/%s"|format(mod, mod) -%} # -*- coding: utf-8 -*- -from odoo import http +from flectra import http # class {{ mod|pascal }}(http.Controller): # @http.route('{{ root }}/', auth='public') diff --git a/flectra/cli/templates/default/demo/demo.xml.template b/flectra/cli/templates/default/demo/demo.xml.template index 2fa8d212..15ad6a8d 100644 --- a/flectra/cli/templates/default/demo/demo.xml.template +++ b/flectra/cli/templates/default/demo/demo.xml.template @@ -1,6 +1,6 @@ {%- set mod= name|snake -%} {%- set model = "%s.%s"|format(mod, mod) -%} - + @@ -9,4 +9,4 @@ - + diff --git a/flectra/cli/templates/default/models/models.py.template b/flectra/cli/templates/default/models/models.py.template index f74d15bc..eab55be0 100644 --- a/flectra/cli/templates/default/models/models.py.template +++ b/flectra/cli/templates/default/models/models.py.template @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from odoo import models, fields, api +from flectra import models, fields, api # class {{ name|snake }}(models.Model): # _name = '{{ name|snake }}.{{ name|snake }}' diff --git a/flectra/cli/templates/default/views/templates.xml.template b/flectra/cli/templates/default/views/templates.xml.template index b9f07471..819d4378 100644 --- a/flectra/cli/templates/default/views/templates.xml.template +++ b/flectra/cli/templates/default/views/templates.xml.template @@ -1,4 +1,4 @@ - + @@ -19,4 +19,4 @@ - + diff --git a/flectra/cli/templates/default/views/views.xml.template b/flectra/cli/templates/default/views/views.xml.template index a7cb15ab..ff621be2 100644 --- a/flectra/cli/templates/default/views/views.xml.template +++ b/flectra/cli/templates/default/views/views.xml.template @@ -1,6 +1,6 @@ {%- set mod = name|snake -%} {%- set model = "%s.%s"|format(mod, mod) -%} - + - + diff --git a/flectra/modules/module.py b/flectra/modules/module.py index 7977ece6..25905d62 100644 --- a/flectra/modules/module.py +++ b/flectra/modules/module.py @@ -309,7 +309,7 @@ def load_information_from_description_file(module, mod_path=None): # default values for descriptor info = { 'application': False, - 'author': 'Flectra S.A.', + 'author': 'FlectraHQ', 'auto_install': False, 'category': 'Uncategorized', 'depends': [], @@ -320,7 +320,7 @@ def load_information_from_description_file(module, mod_path=None): 'post_load': None, 'version': '1.0', 'web': False, - 'website': 'https://www.flectra.com', + 'website': 'https://www.flectrahq.com', 'sequence': 100, 'summary': '', } diff --git a/flectra/osv/osv.py b/flectra/osv/osv.py index 49e6c399..d3d399a8 100644 --- a/flectra/osv/osv.py +++ b/flectra/osv/osv.py @@ -5,7 +5,7 @@ from ..exceptions import except_orm from .orm import Model, TransientModel, AbstractModel # Deprecated, kept for backward compatibility. -# openerp.exceptions.Warning should be used instead. +# flectra.exceptions.Warning should be used instead. except_osv = except_orm # Deprecated, kept for backward compatibility. diff --git a/flectra/service/common.py b/flectra/service/common.py index 2936a4f8..4225bfcd 100644 --- a/flectra/service/common.py +++ b/flectra/service/common.py @@ -39,7 +39,7 @@ def exp_about(extended=False): @return string if extended is False else tuple """ - info = _('See http://openerp.com') + info = _('See http://flectrahq.com') if extended: return info, flectra.release.version