diff --git a/addons/account/__init__.py b/addons/account/__init__.py index c5e9b15a35..e68c7a84ef 100644 --- a/addons/account/__init__.py +++ b/addons/account/__init__.py @@ -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. from . import controllers from . import models from . import wizard from . import report -from odoo import api, SUPERUSER_ID +from flectra import api, SUPERUSER_ID SYSCOHADA_LIST = ['BJ', 'BF', 'CM', 'CF', 'KM', 'CG', 'CI', 'GA', 'GN', 'GW', 'GQ', 'ML', 'NE', 'CD', 'SN', 'TD', 'TG'] diff --git a/addons/account/__manifest__.py b/addons/account/__manifest__.py index 8e9eb3b62b..d6dfb01c5e 100644 --- a/addons/account/__manifest__.py +++ b/addons/account/__manifest__.py @@ -1,7 +1,8 @@ # -*- 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. { 'name' : 'Invoicing', + "author":"Odoo S.A", 'version' : '1.1', 'summary': 'Send Invoices and Track Payments', 'sequence': 30, @@ -9,7 +10,7 @@ Core mechanisms for the accounting modules. To display the menuitems, install the module account_invoicing. """, 'category': 'Accounting', - 'website': 'https://www.odoo.com/page/billing', + 'website': 'https://flectrahq.com/page/billing', 'images' : ['images/accounts.jpeg','images/bank_statement.jpeg','images/cash_register.jpeg','images/chart_of_accounts.jpeg','images/customer_invoice.jpeg','images/journal_entries.jpeg'], 'depends' : ['base_setup', 'product', 'analytic', 'web_planner', 'portal'], 'data': [ diff --git a/addons/account/controllers/__init__.py b/addons/account/controllers/__init__.py index e5a6112c48..014a80e735 100644 --- a/addons/account/controllers/__init__.py +++ b/addons/account/controllers/__init__.py @@ -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 mail from . import portal diff --git a/addons/account/controllers/mail.py b/addons/account/controllers/mail.py index f30c69e21b..499a2cdcdd 100644 --- a/addons/account/controllers/mail.py +++ b/addons/account/controllers/mail.py @@ -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 werkzeug -from odoo.addons.mail.controllers.main import MailController -from odoo.exceptions import AccessError -from odoo.http import request -from odoo.tools.misc import consteq +from flectra.addons.mail.controllers.main import MailController +from flectra.exceptions import AccessError +from flectra.http import request +from flectra.tools.misc import consteq class MailController(MailController): diff --git a/addons/account/controllers/portal.py b/addons/account/controllers/portal.py index 4303f972f9..423e4bc5d3 100644 --- a/addons/account/controllers/portal.py +++ b/addons/account/controllers/portal.py @@ -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. -from odoo import http, _ -from odoo.addons.portal.controllers.portal import CustomerPortal, pager as portal_pager -from odoo.exceptions import AccessError -from odoo.http import request -from odoo.tools import consteq +from flectra import http, _ +from flectra.addons.portal.controllers.portal import CustomerPortal, pager as portal_pager +from flectra.exceptions import AccessError +from flectra.http import request +from flectra.tools import consteq class PortalAccount(CustomerPortal): diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml index f2bd9b1c8e..129548bc65 100644 --- a/addons/account/data/account_data.xml +++ b/addons/account/data/account_data.xml @@ -1,5 +1,5 @@ - + @@ -161,4 +161,4 @@ - + diff --git a/addons/account/data/data_account_type.xml b/addons/account/data/data_account_type.xml index 34c00e4083..41f9ef4249 100644 --- a/addons/account/data/data_account_type.xml +++ b/addons/account/data/data_account_type.xml @@ -1,5 +1,5 @@ - + @@ -81,5 +81,5 @@ other - + diff --git a/addons/account/data/mail_template_data.xml b/addons/account/data/mail_template_data.xml index d036592933..dc98e2d47b 100644 --- a/addons/account/data/mail_template_data.xml +++ b/addons/account/data/mail_template_data.xml @@ -1,5 +1,5 @@ - + @@ -128,7 +128,7 @@ from ${object.company_id.name}. - Powered by Odoo. + Powered by Flectra. @@ -137,4 +137,4 @@ from ${object.company_id.name}. - + diff --git a/addons/account/data/payment_receipt_data.xml b/addons/account/data/payment_receipt_data.xml index 3190edfb15..826919424e 100644 --- a/addons/account/data/payment_receipt_data.xml +++ b/addons/account/data/payment_receipt_data.xml @@ -1,5 +1,5 @@ - + @@ -42,4 +42,4 @@ ${user.signature | safe} }" /> - + diff --git a/addons/account/demo/account_demo.xml b/addons/account/demo/account_demo.xml index 8f2f139f4b..333a82a03d 100644 --- a/addons/account/demo/account_demo.xml +++ b/addons/account/demo/account_demo.xml @@ -1,5 +1,5 @@ - + @@ -53,4 +53,4 @@ - + diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 9e7d2a59a0..760bec54c8 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -3,11 +3,11 @@ import time import math -from odoo.osv import expression -from odoo.tools.float_utils import float_round as round -from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT -from odoo.exceptions import UserError, ValidationError -from odoo import api, fields, models, _ +from flectra.osv import expression +from flectra.tools.float_utils import float_round as round +from flectra.tools import DEFAULT_SERVER_DATETIME_FORMAT +from flectra.exceptions import UserError, ValidationError +from flectra import api, fields, models, _ class AccountAccountType(models.Model): @@ -362,13 +362,13 @@ class AccountJournal(models.Model): inbound_payment_method_ids = fields.Many2many('account.payment.method', 'account_journal_inbound_payment_method_rel', 'journal_id', 'inbound_payment_method', domain=[('payment_type', '=', 'inbound')], string='Debit Methods', default=lambda self: self._default_inbound_payment_methods(), - help="Manual: Get paid by cash, check or any other method outside of Odoo.\n"\ + help="Manual: Get paid by cash, check or any other method outside of Flectra.\n"\ "Electronic: Get paid automatically through a payment acquirer by requesting a transaction on a card saved by the customer when buying or subscribing online (payment token).\n"\ - "Batch Deposit: Encase several customer checks at once by generating a batch deposit to submit to your bank. When encoding the bank statement in Odoo,you are suggested to reconcile the transaction with the batch deposit. Enable this option from the settings.") + "Batch Deposit: Encase several customer checks at once by generating a batch deposit to submit to your bank. When encoding the bank statement in Flectra,you are suggested to reconcile the transaction with the batch deposit. Enable this option from the settings.") outbound_payment_method_ids = fields.Many2many('account.payment.method', 'account_journal_outbound_payment_method_rel', 'journal_id', 'outbound_payment_method', domain=[('payment_type', '=', 'outbound')], string='Payment Methods', default=lambda self: self._default_outbound_payment_methods(), - help="Manual:Pay bill by cash or any other method outside of Odoo.\n"\ - "Check:Pay bill by check and print it from Odoo.\n"\ + help="Manual:Pay bill by cash or any other method outside of Flectra.\n"\ + "Check:Pay bill by check and print it from Flectra.\n"\ "SEPA Credit Transfer: Pay bill from a SEPA Credit Transfer file you submit to your bank. Enable this option from the settings.") at_least_one_inbound = fields.Boolean(compute='_methods_compute', store=True) at_least_one_outbound = fields.Boolean(compute='_methods_compute', store=True) diff --git a/addons/account/models/account_analytic_line.py b/addons/account/models/account_analytic_line.py index 1d212d31bf..e0db42ca90 100644 --- a/addons/account/models/account_analytic_line.py +++ b/addons/account/models/account_analytic_line.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from odoo import api, fields, models, _ +from flectra import api, fields, models, _ from math import copysign diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index 671d3b6a60..a1219c5a87 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -1,11 +1,11 @@ # -*- coding: utf-8 -*- -from odoo import api, fields, models, _ -from odoo.osv import expression -from odoo.tools import float_is_zero, pycompat -from odoo.tools import float_compare, float_round, float_repr -from odoo.tools.misc import formatLang -from odoo.exceptions import UserError, ValidationError +from flectra import api, fields, models, _ +from flectra.osv import expression +from flectra.tools import float_is_zero, pycompat +from flectra.tools import float_compare, float_round, float_repr +from flectra.tools.misc import formatLang +from flectra.exceptions import UserError, ValidationError import time import math @@ -378,7 +378,7 @@ class AccountBankStatementLine(models.Model): @api.constrains('amount') def _check_amount(self): # Allow to enter bank statement line with an amount of 0, - # so that user can enter/import the exact bank statement they have received from their bank in Odoo + # so that user can enter/import the exact bank statement they have received from their bank in Flectra if self.journal_id.type != 'bank' and self.currency_id.is_zero(self.amount): raise ValidationError(_('A Cash transaction can\'t have a 0 amount.')) diff --git a/addons/account/models/account_cash_rounding.py b/addons/account/models/account_cash_rounding.py index 1f962e5453..6bec9f4b8a 100644 --- a/addons/account/models/account_cash_rounding.py +++ b/addons/account/models/account_cash_rounding.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from odoo import models, fields, api, _ -from odoo.tools import float_round +from flectra import models, fields, api, _ +from flectra.tools import float_round class AccountCashRounding(models.Model): diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 27e9dcdd7e..0213a3ca75 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -9,13 +9,13 @@ from lxml import etree from dateutil.relativedelta import relativedelta from werkzeug.urls import url_encode -from odoo import api, exceptions, fields, models, _ -from odoo.tools import float_is_zero, float_compare, pycompat -from odoo.tools.misc import formatLang +from flectra import api, exceptions, fields, models, _ +from flectra.tools import float_is_zero, float_compare, pycompat +from flectra.tools.misc import formatLang -from odoo.exceptions import AccessError, UserError, RedirectWarning, ValidationError, Warning +from flectra.exceptions import AccessError, UserError, RedirectWarning, ValidationError, Warning -from odoo.addons import decimal_precision as dp +from flectra.addons import decimal_precision as dp import logging _logger = logging.getLogger(__name__) diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index 26cb462b35..ebad4b5016 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -3,10 +3,10 @@ from datetime import datetime, timedelta from babel.dates import format_datetime, format_date -from odoo import models, api, _, fields -from odoo.release import version -from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF -from odoo.tools.misc import formatLang +from flectra import models, api, _, fields +from flectra.release import version +from flectra.tools import DEFAULT_SERVER_DATE_FORMAT as DF +from flectra.tools.misc import formatLang class account_journal(models.Model): _inherit = "account.journal" diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 5a80b5d98f..18108c936b 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2,13 +2,13 @@ import time from collections import OrderedDict -from odoo import api, fields, models, _ -from odoo.osv import expression -from odoo.exceptions import RedirectWarning, UserError, ValidationError -from odoo.tools.misc import formatLang -from odoo.tools import float_is_zero, float_compare -from odoo.tools.safe_eval import safe_eval -from odoo.addons import decimal_precision as dp +from flectra import api, fields, models, _ +from flectra.osv import expression +from flectra.exceptions import RedirectWarning, UserError, ValidationError +from flectra.tools.misc import formatLang +from flectra.tools import float_is_zero, float_compare +from flectra.tools.safe_eval import safe_eval +from flectra.addons import decimal_precision as dp from lxml import etree #---------------------------------------------------------- @@ -1239,7 +1239,7 @@ class AccountMoveLine(models.Model): # Create tax lines tax_lines_vals = [] if context.get('apply_taxes') and vals.get('tax_ids'): - # Get ids from triplets : https://www.odoo.com/documentation/10.0/reference/orm.html#odoo.models.Model.write + # Get ids from triplets : https://www.flectra.com/documentation/10.0/reference/orm.html#flectra.models.Model.write tax_ids = [tax['id'] for tax in self.resolve_2many_commands('tax_ids', vals['tax_ids']) if tax.get('id')] # Since create() receives ids instead of recordset, let's just use the old-api bridge taxes = self.env['account.tax'].browse(tax_ids) diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index e30e7efc34..e66f45a568 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from odoo import models, fields, api, _ -from odoo.exceptions import UserError, ValidationError +from flectra import models, fields, api, _ +from flectra.exceptions import UserError, ValidationError MAP_INVOICE_TYPE_PARTNER_TYPE = { 'out_invoice': 'customer', @@ -32,10 +32,10 @@ class account_abstract_payment(models.AbstractModel): payment_type = fields.Selection([('outbound', 'Send Money'), ('inbound', 'Receive Money')], string='Payment Type', required=True) payment_method_id = fields.Many2one('account.payment.method', string='Payment Method Type', required=True, oldname="payment_method", - help="Manual: Get paid by cash, check or any other method outside of Odoo.\n"\ + help="Manual: Get paid by cash, check or any other method outside of Flectra.\n"\ "Electronic: Get paid automatically through a payment acquirer by requesting a transaction on a card saved by the customer when buying or subscribing online (payment token).\n"\ - "Check: Pay bill by check and print it from Odoo.\n"\ - "Batch Deposit: Encase several customer checks at once by generating a batch deposit to submit to your bank. When encoding the bank statement in Odoo, you are suggested to reconcile the transaction with the batch deposit.To enable batch deposit,module account_batch_deposit must be installed.\n"\ + "Check: Pay bill by check and print it from Flectra.\n"\ + "Batch Deposit: Encase several customer checks at once by generating a batch deposit to submit to your bank. When encoding the bank statement in Flectra, you are suggested to reconcile the transaction with the batch deposit.To enable batch deposit,module account_batch_deposit must be installed.\n"\ "SEPA Credit Transfer: Pay bill from a SEPA Credit Transfer file you submit to your bank. To enable sepa credit transfer, module account_sepa must be installed ") payment_method_code = fields.Char(related='payment_method_id.code', help="Technical field used to adapt the interface to the payment type selected.", readonly=True) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 04e67f7d3b..888c0d2fd9 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -from odoo.exceptions import AccessError -from odoo import api, fields, models, _ -from odoo import SUPERUSER_ID -from odoo.exceptions import UserError +from flectra.exceptions import AccessError +from flectra import api, fields, models, _ +from flectra import SUPERUSER_ID +from flectra.exceptions import UserError import logging diff --git a/addons/account/models/company.py b/addons/account/models/company.py index 1465c69082..64be319d18 100644 --- a/addons/account/models/company.py +++ b/addons/account/models/company.py @@ -3,10 +3,10 @@ from datetime import timedelta, datetime import calendar -from odoo import fields, models, api, _ -from odoo.exceptions import ValidationError -from odoo.exceptions import UserError -from odoo.tools.float_utils import float_round, float_is_zero +from flectra import fields, models, api, _ +from flectra.exceptions import ValidationError +from flectra.exceptions import UserError +from flectra.tools.float_utils import float_round, float_is_zero class ResCompany(models.Model): diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index 4482b4e1c4..b8108fc92c 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -4,10 +4,10 @@ from ast import literal_eval from operator import itemgetter import time -from odoo import api, fields, models, _ -from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT -from odoo.exceptions import ValidationError -from odoo.addons.base.res.res_partner import WARNING_MESSAGE, WARNING_HELP +from flectra import api, fields, models, _ +from flectra.tools import DEFAULT_SERVER_DATETIME_FORMAT +from flectra.exceptions import ValidationError +from flectra.addons.base.res.res_partner import WARNING_MESSAGE, WARNING_HELP class AccountFiscalPosition(models.Model): _name = 'account.fiscal.position' diff --git a/addons/account/models/product.py b/addons/account/models/product.py index 0070cbc1fa..b55565587c 100644 --- a/addons/account/models/product.py +++ b/addons/account/models/product.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from odoo import api, fields, models, _ -from odoo.exceptions import UserError +from flectra import api, fields, models, _ +from flectra.exceptions import UserError class ProductCategory(models.Model): diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index 44182604d5..00eb52b92f 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -1,7 +1,7 @@ # -*- 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 odoo import api, fields, models, _ +from flectra import api, fields, models, _ class ResConfigSettings(models.TransientModel): diff --git a/addons/account/models/web_planner.py b/addons/account/models/web_planner.py index 40e7f44676..22f6462a1c 100644 --- a/addons/account/models/web_planner.py +++ b/addons/account/models/web_planner.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from odoo import api, models +from flectra import api, models class PlannerAccount(models.Model): diff --git a/addons/account/report/__init__.py b/addons/account/report/__init__.py index e31bd86151..bfd9fd8efb 100644 --- a/addons/account/report/__init__.py +++ b/addons/account/report/__init__.py @@ -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 account_financial_report from . import account_invoice_report diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py index fd2fef466f..c85bd70c2f 100644 --- a/addons/account/report/account_aged_partner_balance.py +++ b/addons/account/report/account_aged_partner_balance.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- import time -from odoo import api, models, _ -from odoo.exceptions import UserError -from odoo.tools import float_is_zero +from flectra import api, models, _ +from flectra.exceptions import UserError +from flectra.tools import float_is_zero from datetime import datetime from dateutil.relativedelta import relativedelta diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py index 93842ff137..ce5d014a7c 100644 --- a/addons/account/report/account_balance.py +++ b/addons/account/report/account_balance.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- import time -from odoo import api, models, _ -from odoo.exceptions import UserError +from flectra import api, models, _ +from flectra.exceptions import UserError class ReportTrialBalance(models.AbstractModel): diff --git a/addons/account/report/account_financial_report.py b/addons/account/report/account_financial_report.py index 0dd860b1d1..cfd6ee70f2 100644 --- a/addons/account/report/account_financial_report.py +++ b/addons/account/report/account_financial_report.py @@ -1,7 +1,7 @@ # -*- 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 odoo import api, models, fields +from flectra import api, models, fields # --------------------------------------------------------- # Account Financial Report diff --git a/addons/account/report/account_general_ledger.py b/addons/account/report/account_general_ledger.py index 9c3c79dacf..87b7a417f0 100644 --- a/addons/account/report/account_general_ledger.py +++ b/addons/account/report/account_general_ledger.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- import time -from odoo import api, models, _ -from odoo.exceptions import UserError +from flectra import api, models, _ +from flectra.exceptions import UserError class ReportGeneralLedger(models.AbstractModel): diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py index 62c2fe786a..9799ba8016 100644 --- a/addons/account/report/account_invoice_report.py +++ b/addons/account/report/account_invoice_report.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from odoo import tools -from odoo import models, fields, api +from flectra import tools +from flectra import models, fields, api class AccountInvoiceReport(models.Model): diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml index 0502c7dcc6..6d9b023236 100644 --- a/addons/account/report/account_invoice_report_view.xml +++ b/addons/account/report/account_invoice_report_view.xml @@ -1,5 +1,5 @@ - + account.invoice.report.pivot @@ -132,4 +132,4 @@ view_mode="graph"/> - + diff --git a/addons/account/report/account_journal.py b/addons/account/report/account_journal.py index 83e1b8bda8..8ae2d3e83c 100644 --- a/addons/account/report/account_journal.py +++ b/addons/account/report/account_journal.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- import time -from odoo import api, models, _ -from odoo.exceptions import UserError +from flectra import api, models, _ +from flectra.exceptions import UserError class ReportJournal(models.AbstractModel): diff --git a/addons/account/report/account_overdue_report.py b/addons/account/report/account_overdue_report.py index dbfd933c99..d31d1f3226 100644 --- a/addons/account/report/account_overdue_report.py +++ b/addons/account/report/account_overdue_report.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import time -from odoo import api, fields, models +from flectra import api, fields, models class ReportOverdue(models.AbstractModel): diff --git a/addons/account/report/account_partner_ledger.py b/addons/account/report/account_partner_ledger.py index 2da6c42abe..de33ee50e9 100644 --- a/addons/account/report/account_partner_ledger.py +++ b/addons/account/report/account_partner_ledger.py @@ -2,9 +2,9 @@ from datetime import datetime import time -from odoo import api, models, _ -from odoo.exceptions import UserError -from odoo.tools import DEFAULT_SERVER_DATE_FORMAT +from flectra import api, models, _ +from flectra.exceptions import UserError +from flectra.tools import DEFAULT_SERVER_DATE_FORMAT class ReportPartnerLedger(models.AbstractModel): diff --git a/addons/account/report/account_report_financial.py b/addons/account/report/account_report_financial.py index 65560736ff..b095ed903f 100644 --- a/addons/account/report/account_report_financial.py +++ b/addons/account/report/account_report_financial.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- import time -from odoo import api, models, _ -from odoo.exceptions import UserError +from flectra import api, models, _ +from flectra.exceptions import UserError class ReportFinancial(models.AbstractModel): diff --git a/addons/account/report/account_report_payment_receipt_templates.xml b/addons/account/report/account_report_payment_receipt_templates.xml index a08104c459..79fc60a2a0 100644 --- a/addons/account/report/account_report_payment_receipt_templates.xml +++ b/addons/account/report/account_report_payment_receipt_templates.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/report/account_tax.py b/addons/account/report/account_tax.py index bcaf3697c2..6d3649fdcb 100644 --- a/addons/account/report/account_tax.py +++ b/addons/account/report/account_tax.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from odoo import api, models, _ -from odoo.exceptions import UserError +from flectra import api, models, _ +from flectra.exceptions import UserError class ReportTax(models.AbstractModel): diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index c527729765..abacf2db35 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -1,5 +1,5 @@ - + @@ -150,4 +150,4 @@ - + diff --git a/addons/account/static/src/css/account_bank_and_cash.css b/addons/account/static/src/css/account_bank_and_cash.css index 1d2a4fba74..4775a3d1f8 100644 --- a/addons/account/static/src/css/account_bank_and_cash.css +++ b/addons/account/static/src/css/account_bank_and_cash.css @@ -28,4 +28,4 @@ .o_payment_label{ padding-right: 20px; -} \ No newline at end of file +} \ No newline at end of file diff --git a/addons/account/static/src/js/account_dashboard_setup_bar.js b/addons/account/static/src/js/account_dashboard_setup_bar.js index 1af9416008..565b847112 100644 --- a/addons/account/static/src/js/account_dashboard_setup_bar.js +++ b/addons/account/static/src/js/account_dashboard_setup_bar.js @@ -1,4 +1,4 @@ -odoo.define('account.dashboard_setup_bar', function (require) { +flectra.define('account.dashboard_setup_bar', function (require) { "use strict"; var core = require('web.core'); @@ -166,7 +166,7 @@ var AccountSetupBarController = KanbanController.extend({ /** * @private - * @param {OdooEvent} e + * @param {FlectraEvent} e */ _onDashboardOpenAction: function (e) { var action_name = e.data.action_name; @@ -179,19 +179,19 @@ var AccountSetupBarController = KanbanController.extend({ /** * Manages the clicks on the setup bar buttons. **/ - _triggerCompanyButtonAction: function (odooEvent) { + _triggerCompanyButtonAction: function (flectraEvent) { var self = this - if (odooEvent.data.rpc_method !== undefined) { + if (flectraEvent.data.rpc_method !== undefined) { self._rpc({ model: 'res.company', - method: odooEvent.data.rpc_method, + method: flectraEvent.data.rpc_method, args: [], }) .then( function(rslt_action) { if (rslt_action !== undefined) { self.do_action(rslt_action, { - action_context: odooEvent.data.context, + action_context: flectraEvent.data.context, on_close: function () { self.trigger_up('reload'); //Reloads the dashboard to refresh the status of the setup bar. }, diff --git a/addons/account/static/src/js/account_payment_field.js b/addons/account/static/src/js/account_payment_field.js index 1e5171e1f4..1b0063804b 100644 --- a/addons/account/static/src/js/account_payment_field.js +++ b/addons/account/static/src/js/account_payment_field.js @@ -1,4 +1,4 @@ -odoo.define('account.payment', function (require) { +flectra.define('account.payment', function (require) { "use strict"; var AbstractField = require('web.AbstractField'); diff --git a/addons/account/static/src/js/reconciliation/reconciliation_action.js b/addons/account/static/src/js/reconciliation/reconciliation_action.js index 79724846cb..0486c0877d 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_action.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_action.js @@ -1,4 +1,4 @@ -odoo.define('account.ReconciliationClientAction', function (require) { +flectra.define('account.ReconciliationClientAction', function (require) { "use strict"; var ReconciliationModel = require('account.ReconciliationModel'); @@ -207,7 +207,7 @@ var StatementAction = Widget.extend(ControlPanelMixin, { * to 'create' or 'match', the other lines switch to 'inactive' mode * * @private - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onAction: function (event) { var self = this; @@ -234,7 +234,7 @@ var StatementAction = Widget.extend(ControlPanelMixin, { * call 'changeName' model method * * @private - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onChangeName: function (event) { var self = this; @@ -253,7 +253,7 @@ var StatementAction = Widget.extend(ControlPanelMixin, { * call 'closeStatement' model method * * @private - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onCloseStatement: function (event) { var self = this; @@ -272,7 +272,7 @@ var StatementAction = Widget.extend(ControlPanelMixin, { /** * Load more statement and render them * - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onLoadMore: function (event) { return this._loadMore(this.model.defaultDisplayQty); @@ -283,7 +283,7 @@ var StatementAction = Widget.extend(ControlPanelMixin, { * values and notifications then open the first available line * * @private - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onValidate: function (event) { var self = this; @@ -340,7 +340,7 @@ var ManualAction = StatementAction.extend({ * first available line * * @private - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onValidate: function (event) { var self = this; diff --git a/addons/account/static/src/js/reconciliation/reconciliation_model.js b/addons/account/static/src/js/reconciliation/reconciliation_model.js index 249e8b2086..8c6595a401 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_model.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_model.js @@ -1,4 +1,4 @@ -odoo.define('account.ReconciliationModel', function (require) { +flectra.define('account.ReconciliationModel', function (require) { "use strict"; var BasicModel = require('web.BasicModel'); diff --git a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js index ed3b5ca3d4..9b21da9b52 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js @@ -1,4 +1,4 @@ -odoo.define('account.ReconciliationRenderer', function (require) { +flectra.define('account.ReconciliationRenderer', function (require) { "use strict"; var Widget = require('web.Widget'); @@ -575,7 +575,7 @@ var LineRenderer = Widget.extend(FieldManagerMixin, { }, /** * @private - * @param {OdooEvent} event + * @param {FlectraEvent} event */ _onFieldChanged: function (event) { event.stopPropagation(); diff --git a/addons/account/static/src/js/tour_bank_statement_reconciliation.js b/addons/account/static/src/js/tour_bank_statement_reconciliation.js index b56b8747f1..1d3402090d 100644 --- a/addons/account/static/src/js/tour_bank_statement_reconciliation.js +++ b/addons/account/static/src/js/tour_bank_statement_reconciliation.js @@ -1,4 +1,4 @@ -odoo.define('account.tour_bank_statement_reconciliation', function(require) { +flectra.define('account.tour_bank_statement_reconciliation', function(require) { 'use strict'; var core = require('web.core'); diff --git a/addons/account/static/src/less/account_dashboard.less b/addons/account/static/src/less/account_dashboard.less index bd63593f0b..5594681738 100644 --- a/addons/account/static/src/less/account_dashboard.less +++ b/addons/account/static/src/less/account_dashboard.less @@ -1,12 +1,12 @@ .o_kanban_view.o_kanban_dashboard.o_account_kanban { &:not(.o_kanban_nocontent) .o_account_dashboard_header{ - margin: (0 - @o-kanban-record-margin) (@o-kanban-record-margin - @odoo-horizontal-padding) @o-kanban-record-margin; + margin: (0 - @o-kanban-record-margin) (@o-kanban-record-margin - @flectra-horizontal-padding) @o-kanban-record-margin; } .o_account_dashboard_header { .o-flex(1, 0, 100%); - background-color: @odoo-view-background-color; + background-color: @flectra-view-background-color; h4 { font-size: @font-size-base; diff --git a/addons/account/static/src/less/account_journal_dashboard.less b/addons/account/static/src/less/account_journal_dashboard.less index 7e8741e5f5..32c2c9c3e8 100644 --- a/addons/account/static/src/less/account_journal_dashboard.less +++ b/addons/account/static/src/less/account_journal_dashboard.less @@ -6,17 +6,17 @@ } .o_kanban_card_settings { - padding-top: @odoo-horizontal-padding/2; - padding-bottom: @odoo-horizontal-padding/2; + padding-top: @flectra-horizontal-padding/2; + padding-bottom: @flectra-horizontal-padding/2; border-top: 1px solid; - border-color: @odoo-brand-lightsecondary; + border-color: @flectra-brand-lightsecondary; } .o_dashboard_star { font-size: 12px; &.fa-star-o { - color: @odoo-main-color-muted; + color: @flectra-main-color-muted; &:hover { color: gold; } @@ -27,7 +27,7 @@ } .o_dashboard_graph { - margin-bottom: -@odoo-horizontal-padding/2; + margin-bottom: -@flectra-horizontal-padding/2; } } @@ -54,7 +54,7 @@ } g.tick.major { // Don't know why, but leads to strange bold text - // stroke: @odoo-brand-primary; + // stroke: @flectra-brand-primary; line { display: none; @@ -68,13 +68,13 @@ g.nv-linesWrap { g.nv-group.nv-series-0 { fill-opacity: 0.3 !important; - fill: @odoo-brand-primary !important; - stroke: @odoo-brand-primary !important; + fill: @flectra-brand-primary !important; + stroke: @flectra-brand-primary !important; .nv-point { visibility: hidden; r: 3; - stroke: @odoo-brand-primary !important; + stroke: @flectra-brand-primary !important; fill: white; stroke-width: 2; } @@ -95,11 +95,11 @@ g.nv-group.nv-series-0 { g.past { opacity: 0.5; - fill: @odoo-brand-primary !important; + fill: @flectra-brand-primary !important; } g.future { opacity: 0.5; - fill: @odoo-brand-optional !important; + fill: @flectra-brand-optional !important; } } } diff --git a/addons/account/static/src/less/account_reconciliation.less b/addons/account/static/src/less/account_reconciliation.less index 66b39301fb..deb0c76c3f 100644 --- a/addons/account/static/src/less/account_reconciliation.less +++ b/addons/account/static/src/less/account_reconciliation.less @@ -42,7 +42,7 @@ .o_view_nocontent { max-width: none; padding: 0 10%; - color: @odoo-main-color-muted; + color: @flectra-main-color-muted; font-size: 125%; } diff --git a/addons/account/static/src/xml/account_reconciliation.xml b/addons/account/static/src/xml/account_reconciliation.xml index 94bef90a6f..7d24458fda 100644 --- a/addons/account/static/src/xml/account_reconciliation.xml +++ b/addons/account/static/src/xml/account_reconciliation.xml @@ -21,7 +21,7 @@
- +
diff --git a/addons/account/static/tests/account_dashboard_setup_bar_tests.js b/addons/account/static/tests/account_dashboard_setup_bar_tests.js index 4729467a13..de34dc0ab8 100644 --- a/addons/account/static/tests/account_dashboard_setup_bar_tests.js +++ b/addons/account/static/tests/account_dashboard_setup_bar_tests.js @@ -1,4 +1,4 @@ -odoo.define('account.setup_bar_tests', function (require) { +flectra.define('account.setup_bar_tests', function (require) { "use strict"; var testUtils = require('web.test_utils'); diff --git a/addons/account/static/tests/account_payment_field_tests.js b/addons/account/static/tests/account_payment_field_tests.js index 1bbeaf6d35..dfbffe2e5e 100644 --- a/addons/account/static/tests/account_payment_field_tests.js +++ b/addons/account/static/tests/account_payment_field_tests.js @@ -1,4 +1,4 @@ -odoo.define('account.reconciliation_field_tests', function (require) { +flectra.define('account.reconciliation_field_tests', function (require) { "use strict"; var FormView = require('web.FormView'); diff --git a/addons/account/static/tests/reconciliation_tests.js b/addons/account/static/tests/reconciliation_tests.js index 93e4a2f365..ddf2c57dd9 100644 --- a/addons/account/static/tests/reconciliation_tests.js +++ b/addons/account/static/tests/reconciliation_tests.js @@ -1,4 +1,4 @@ -odoo.define('account.reconciliation_tests.data', function () { +flectra.define('account.reconciliation_tests.data', function () { "use strict"; var Datas = {}; @@ -502,7 +502,7 @@ Datas.getParams = function () { return Datas; }); -odoo.define('account.reconciliation_tests', function (require) { +flectra.define('account.reconciliation_tests', function (require) { "use strict"; var ReconciliationClientAction = require('account.ReconciliationClientAction'); @@ -663,7 +663,7 @@ QUnit.module('account', { QUnit.test('Reconciliation validate without proposition', function (assert) { assert.expect(1); - // Test added to prevent this issue happening again: https://github.com/odoo/odoo/commit/3549688b21eb65e16b9c3f2b6462eb8d8b52cd47 + // Test added to prevent this issue happening again: https://github.com/flectra/flectra/commit/3549688b21eb65e16b9c3f2b6462eb8d8b52cd47 var clientAction = new ReconciliationClientAction.StatementAction(null, this.params.options); testUtils.addMockEnvironment(clientAction, { data: this.params.data, @@ -703,7 +703,7 @@ QUnit.module('account', { QUnit.test('Reconciliation validate with proposition', function (assert) { assert.expect(1); - // Test added to check this functionality: https://github.com/odoo/odoo/commit/2f3b469dee6f18cbccce1cdf2a81cfe57960c533 + // Test added to check this functionality: https://github.com/flectra/flectra/commit/2f3b469dee6f18cbccce1cdf2a81cfe57960c533 var clientAction = new ReconciliationClientAction.StatementAction(null, this.params.options); testUtils.addMockEnvironment(clientAction, { data: this.params.data, diff --git a/addons/account/test/account_minimal_test.xml b/addons/account/test/account_minimal_test.xml index e127af9b28..09a4e98621 100644 --- a/addons/account/test/account_minimal_test.xml +++ b/addons/account/test/account_minimal_test.xml @@ -1,5 +1,5 @@ - + @@ -307,4 +307,4 @@ - + diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index 24cefb19ce..70226f2264 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -14,7 +14,7 @@ - !python {model: account.invoice, id: False}: | import os - from odoo import tools + from flectra import tools data, format = ref('account.report_invoice').render(ref('account.account_invoice_customer0')) if tools.config['test_report_directory']: open(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data) @@ -23,7 +23,7 @@ - !python {model: res.partner, id: False}: | import os - from odoo import tools + from flectra import tools data, format = ref('account.report_overdue').render([ref('base.res_partner_1'),ref('base.res_partner_2'),ref('base.res_partner_12')]) if tools.config['test_report_directory']: open(os.path.join(tools.config['test_report_directory'], 'account-report_overdue.'+format), 'wb+').write(data) @@ -33,7 +33,7 @@ !python {model: account.account, id: False}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from odoo.tools import test_reports + from flectra.tools import test_reports test_reports.try_report_action(self.env.cr, self.env.uid, 'action_account_aged_balance_view',wiz_data=data_dict, context=ctx, our_module='account') - Print the Account Balance Sheet in Normal mode @@ -41,7 +41,7 @@ !python {model: account.account, id: False}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'), 'account_report_id': ref('account_financial_report_balancesheet0')} - from odoo.tools import test_reports + from flectra.tools import test_reports test_reports.try_report_action(self.env.cr, self.env.uid, 'action_account_report',wiz_data=data_dict, context=ctx, our_module='account') - Print the Account Balance Report in Normal mode through the wizard - From Account Chart @@ -49,7 +49,7 @@ !python {model: account.account, id: False}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from odoo.tools import test_reports + from flectra.tools import test_reports test_reports.try_report_action(self.env.cr, self.env.uid, 'action_account_balance_menu',wiz_data=data_dict, context=ctx, our_module='account') - Print the General Ledger Report (in Landscape Mode) @@ -57,7 +57,7 @@ !python {model: account.account, id: False}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from odoo.tools import test_reports + from flectra.tools import test_reports test_reports.try_report_action(self.env.cr, self.env.uid, 'action_account_general_ledger_menu',wiz_data=data_dict, context=ctx, our_module='account') - Print the Profit-Loss Report in Normal Mode @@ -65,5 +65,5 @@ !python {model: account.account, id: False}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'), 'target_move': 'all', 'account_report_id': ref('account_financial_report_balancesheet0')} - from odoo.tools import test_reports + from flectra.tools import test_reports test_reports.try_report_action(self.env.cr, self.env.uid, 'action_account_report',wiz_data=data_dict, context=ctx, our_module='account') diff --git a/addons/account/tests/account_test_classes.py b/addons/account/tests/account_test_classes.py index 8477f4109d..2889ea01b9 100644 --- a/addons/account/tests/account_test_classes.py +++ b/addons/account/tests/account_test_classes.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from odoo.tests.common import HttpCase -from odoo.exceptions import ValidationError +from flectra.tests.common import HttpCase +from flectra.exceptions import ValidationError class AccountingTestCase(HttpCase): """ This class extends the base TransactionCase, in order to test the diff --git a/addons/account/tests/account_test_users.py b/addons/account/tests/account_test_users.py index caa17a9a82..afd47474c9 100644 --- a/addons/account/tests/account_test_users.py +++ b/addons/account/tests/account_test_users.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase class AccountTestUsers(AccountingTestCase): diff --git a/addons/account/tests/test_account_customer_invoice.py b/addons/account/tests/test_account_customer_invoice.py index 2f7142e67d..0ee5d03c28 100644 --- a/addons/account/tests/test_account_customer_invoice.py +++ b/addons/account/tests/test_account_customer_invoice.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_users import AccountTestUsers +from flectra.addons.account.tests.account_test_users import AccountTestUsers import datetime diff --git a/addons/account/tests/test_account_invoice_rounding.py b/addons/account/tests/test_account_invoice_rounding.py index 9b0ef0fc9e..abd1fde579 100644 --- a/addons/account/tests/test_account_invoice_rounding.py +++ b/addons/account/tests/test_account_invoice_rounding.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -from odoo.addons.account.tests.account_test_classes import AccountingTestCase -from odoo.exceptions import ValidationError +from flectra.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.exceptions import ValidationError import time diff --git a/addons/account/tests/test_account_move_closed_period.py b/addons/account/tests/test_account_move_closed_period.py index f0b700247f..1ed6013c9c 100644 --- a/addons/account/tests/test_account_move_closed_period.py +++ b/addons/account/tests/test_account_move_closed_period.py @@ -1,7 +1,7 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase -from odoo.osv.orm import except_orm +from flectra.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.osv.orm import except_orm from datetime import datetime, timedelta -from odoo.tools import DEFAULT_SERVER_DATE_FORMAT +from flectra.tools import DEFAULT_SERVER_DATE_FORMAT class TestPeriodState(AccountingTestCase): """ diff --git a/addons/account/tests/test_account_supplier_invoice.py b/addons/account/tests/test_account_supplier_invoice.py index 357ac04f8f..50475ef006 100644 --- a/addons/account/tests/test_account_supplier_invoice.py +++ b/addons/account/tests/test_account_supplier_invoice.py @@ -1,5 +1,5 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase -from odoo.exceptions import Warning +from flectra.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.exceptions import Warning class TestAccountSupplierInvoice(AccountingTestCase): diff --git a/addons/account/tests/test_account_validate_account_move.py b/addons/account/tests/test_account_validate_account_move.py index db59505af2..adde6352f2 100644 --- a/addons/account/tests/test_account_validate_account_move.py +++ b/addons/account/tests/test_account_validate_account_move.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase class TestAccountValidateAccount(AccountingTestCase): diff --git a/addons/account/tests/test_bank_statement_reconciliation.py b/addons/account/tests/test_bank_statement_reconciliation.py index 7932b32d1f..148ddb1fff 100644 --- a/addons/account/tests/test_bank_statement_reconciliation.py +++ b/addons/account/tests/test_bank_statement_reconciliation.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase class TestBankStatementReconciliation(AccountingTestCase): diff --git a/addons/account/tests/test_bank_stmt_reconciliation_widget_ui.py b/addons/account/tests/test_bank_stmt_reconciliation_widget_ui.py index 9db8bba061..7fb2c40e93 100644 --- a/addons/account/tests/test_bank_stmt_reconciliation_widget_ui.py +++ b/addons/account/tests/test_bank_stmt_reconciliation_widget_ui.py @@ -1,8 +1,8 @@ -from odoo.tests import HttpCase +from flectra.tests import HttpCase class TestUi(HttpCase): post_install = True at_install = False def test_01_admin_bank_statement_reconciliation(self): - self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('bank_statement_reconciliation', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.bank_statement_reconciliation", login="admin") + self.phantom_js("/", "flectra.__DEBUG__.services['web.Tour'].run('bank_statement_reconciliation', 'test')", "flectra.__DEBUG__.services['web.Tour'].tours.bank_statement_reconciliation", login="admin") diff --git a/addons/account/tests/test_fiscal_position.py b/addons/account/tests/test_fiscal_position.py index 320c94cca8..2375ca3425 100644 --- a/addons/account/tests/test_fiscal_position.py +++ b/addons/account/tests/test_fiscal_position.py @@ -1,4 +1,4 @@ -from odoo.tests import common +from flectra.tests import common class TestFiscalPosition(common.TransactionCase): """Tests for fiscal positions in auto apply (account.fiscal.position). diff --git a/addons/account/tests/test_manual_reconciliation.py b/addons/account/tests/test_manual_reconciliation.py index c9c286711f..f1c7029530 100644 --- a/addons/account/tests/test_manual_reconciliation.py +++ b/addons/account/tests/test_manual_reconciliation.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase class TestManualReconciliation(AccountingTestCase): diff --git a/addons/account/tests/test_payment.py b/addons/account/tests/test_payment.py index 329402d99f..a7c5a528fa 100644 --- a/addons/account/tests/test_payment.py +++ b/addons/account/tests/test_payment.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase import time class TestPayment(AccountingTestCase): diff --git a/addons/account/tests/test_product_id_change.py b/addons/account/tests/test_product_id_change.py index 2aeb4309b9..fb03b0d0ad 100644 --- a/addons/account/tests/test_product_id_change.py +++ b/addons/account/tests/test_product_id_change.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase import time class TestProductIdChange(AccountingTestCase): diff --git a/addons/account/tests/test_reconciliation.py b/addons/account/tests/test_reconciliation.py index b91d474895..7782f885b9 100644 --- a/addons/account/tests/test_reconciliation.py +++ b/addons/account/tests/test_reconciliation.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase import time import unittest diff --git a/addons/account/tests/test_search.py b/addons/account/tests/test_search.py index 9f2057d110..8495a36a99 100644 --- a/addons/account/tests/test_search.py +++ b/addons/account/tests/test_search.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_users import AccountTestUsers +from flectra.addons.account.tests.account_test_users import AccountTestUsers class TestSearch(AccountTestUsers): diff --git a/addons/account/tests/test_setup_bar.py b/addons/account/tests/test_setup_bar.py index d790e56233..3d67421c41 100644 --- a/addons/account/tests/test_setup_bar.py +++ b/addons/account/tests/test_setup_bar.py @@ -1,7 +1,7 @@ # -*- 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 odoo.addons.account.tests.account_test_classes import AccountingTestCase +from flectra.addons.account.tests.account_test_classes import AccountingTestCase class TestSetupBar(AccountingTestCase): diff --git a/addons/account/tests/test_tax.py b/addons/account/tests/test_tax.py index 4ca0f8c6ab..ec5ca3e957 100644 --- a/addons/account/tests/test_tax.py +++ b/addons/account/tests/test_tax.py @@ -1,4 +1,4 @@ -from odoo.addons.account.tests.account_test_users import AccountTestUsers +from flectra.addons.account.tests.account_test_users import AccountTestUsers import time diff --git a/addons/account/tests/test_templates_consistency.py b/addons/account/tests/test_templates_consistency.py index 74f86415e1..b4665dfa8a 100644 --- a/addons/account/tests/test_templates_consistency.py +++ b/addons/account/tests/test_templates_consistency.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from odoo.tests.common import HttpCase +from flectra.tests.common import HttpCase class AccountingTestTemplConsistency(HttpCase): diff --git a/addons/account/views/account.xml b/addons/account/views/account.xml index b0e207336c..338f0c91c8 100644 --- a/addons/account/views/account.xml +++ b/addons/account/views/account.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/account_analytic_view.xml b/addons/account/views/account_analytic_view.xml index cf94c946cc..1fda723bba 100644 --- a/addons/account/views/account_analytic_view.xml +++ b/addons/account/views/account_analytic_view.xml @@ -1,5 +1,5 @@ - + account.analytic.line.form.inherit.account @@ -102,4 +102,4 @@ groups="analytic.group_analytic_accounting"/> - + diff --git a/addons/account/views/account_cash_rounding_view.xml b/addons/account/views/account_cash_rounding_view.xml index 67fa2e5fc6..ebd7863d42 100644 --- a/addons/account/views/account_cash_rounding_view.xml +++ b/addons/account/views/account_cash_rounding_view.xml @@ -1,5 +1,5 @@ - + @@ -61,4 +61,4 @@ - + diff --git a/addons/account/views/account_dashboard_setup_bar.xml b/addons/account/views/account_dashboard_setup_bar.xml index c6a1c2edb5..ee212cd966 100644 --- a/addons/account/views/account_dashboard_setup_bar.xml +++ b/addons/account/views/account_dashboard_setup_bar.xml @@ -1,4 +1,4 @@ - + account.journal.dashboard.kanban.js account.journal @@ -9,4 +9,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/addons/account/views/account_end_fy.xml b/addons/account/views/account_end_fy.xml index 04decacb70..228e0fa4f2 100644 --- a/addons/account/views/account_end_fy.xml +++ b/addons/account/views/account_end_fy.xml @@ -1,6 +1,6 @@ - + - + diff --git a/addons/account/views/account_financial_report_data.xml b/addons/account/views/account_financial_report_data.xml index fc224a0f1b..227568fca1 100644 --- a/addons/account/views/account_financial_report_data.xml +++ b/addons/account/views/account_financial_report_data.xml @@ -1,5 +1,5 @@ - + @@ -665,7 +665,7 @@

Click to create a customer invoice.

- Odoo's electronic invoicing allows to ease and fasten the + Flectra's electronic invoicing allows to ease and fasten the collection of customer payments. Your customer receives the invoice by email and he can pay online and/or import it in his own system. @@ -811,4 +811,4 @@ src_model="account.journal"/> - + diff --git a/addons/account/views/account_journal_dashboard_view.xml b/addons/account/views/account_journal_dashboard_view.xml index 0c910e1225..a29e1c67ae 100644 --- a/addons/account/views/account_journal_dashboard_view.xml +++ b/addons/account/views/account_journal_dashboard_view.xml @@ -1,4 +1,4 @@ - + account.journal.dashboard.kanban account.journal @@ -246,7 +246,7 @@

- Balance in GL + Balance in GL
@@ -332,4 +332,4 @@ - + diff --git a/addons/account/views/account_menuitem.xml b/addons/account/views/account_menuitem.xml index e4a9bc1f68..7238902e57 100644 --- a/addons/account/views/account_menuitem.xml +++ b/addons/account/views/account_menuitem.xml @@ -1,5 +1,5 @@ - + @@ -46,5 +46,5 @@ - + diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index e4dfd90dd7..62950e1f47 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -1,5 +1,5 @@ - + @@ -342,4 +342,4 @@ records.post() - + diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml index 2ff82b4bc3..e2466ab68e 100644 --- a/addons/account/views/account_portal_templates.xml +++ b/addons/account/views/account_portal_templates.xml @@ -1,4 +1,4 @@ - + - + diff --git a/addons/account/views/account_report.xml b/addons/account/views/account_report.xml index 06e077e7d8..118bca80b5 100644 --- a/addons/account/views/account_report.xml +++ b/addons/account/views/account_report.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/account_tip_data.xml b/addons/account/views/account_tip_data.xml index 8a71be7775..f462088219 100644 --- a/addons/account/views/account_tip_data.xml +++ b/addons/account/views/account_tip_data.xml @@ -1,6 +1,6 @@ - + - + diff --git a/addons/account/views/account_unit_test.xml b/addons/account/views/account_unit_test.xml index 5a176e58ce..70d0988e14 100644 --- a/addons/account/views/account_unit_test.xml +++ b/addons/account/views/account_unit_test.xml @@ -1,5 +1,5 @@ - + @@ -59,4 +59,4 @@ paid - + diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 40f6e5a03a..535cbb565d 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1,5 +1,5 @@ - + @@ -719,7 +719,7 @@ occurring over a given period of time on a bank account. You should receive this periodicaly from your bank.

- Odoo allows you to reconcile a statement line directly with + Flectra allows you to reconcile a statement line directly with the related sale or puchase invoices.

@@ -802,7 +802,7 @@

A bank statement line is a financial transaction on a bank account.

- Odoo allows you to reconcile a statement line directly with + Flectra allows you to reconcile a statement line directly with the related sale or puchase invoice(s).

@@ -1526,7 +1526,7 @@ A journal entry consists of several journal items, each of which is either a debit or a credit transaction.

- Odoo automatically creates one journal entry per accounting + Flectra automatically creates one journal entry per accounting document: invoice, refund, vendor payment, bank statements, etc. So, you should record journal entries manually only/mainly for miscellaneous operations. @@ -2246,4 +2246,4 @@ - + diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml index 2ef7098029..6ea9fe8d00 100644 --- a/addons/account/views/partner_view.xml +++ b/addons/account/views/partner_view.xml @@ -1,5 +1,5 @@ - + @@ -212,4 +212,4 @@ - + diff --git a/addons/account/views/product_view.xml b/addons/account/views/product_view.xml index 47d71ab621..8fa2de556b 100644 --- a/addons/account/views/product_view.xml +++ b/addons/account/views/product_view.xml @@ -1,5 +1,5 @@ - + product.template.form.inherit @@ -46,4 +46,4 @@ - + diff --git a/addons/account/views/report_agedpartnerbalance.xml b/addons/account/views/report_agedpartnerbalance.xml index cdead9960e..46e00499a2 100644 --- a/addons/account/views/report_agedpartnerbalance.xml +++ b/addons/account/views/report_agedpartnerbalance.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_financial.xml b/addons/account/views/report_financial.xml index 4e91479f39..64e7b32ec3 100644 --- a/addons/account/views/report_financial.xml +++ b/addons/account/views/report_financial.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_generalledger.xml b/addons/account/views/report_generalledger.xml index f515c29ba6..81566721e1 100644 --- a/addons/account/views/report_generalledger.xml +++ b/addons/account/views/report_generalledger.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 5663fa900c..e4d809fbb1 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_journal.xml b/addons/account/views/report_journal.xml index 06dbab99ae..84bdd772d6 100644 --- a/addons/account/views/report_journal.xml +++ b/addons/account/views/report_journal.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_overdue.xml b/addons/account/views/report_overdue.xml index 002ce58ef9..01db8f2bd0 100644 --- a/addons/account/views/report_overdue.xml +++ b/addons/account/views/report_overdue.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_partnerledger.xml b/addons/account/views/report_partnerledger.xml index b9b46ed86f..782fc44d35 100644 --- a/addons/account/views/report_partnerledger.xml +++ b/addons/account/views/report_partnerledger.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_tax.xml b/addons/account/views/report_tax.xml index f5b0396891..1cb995e04c 100644 --- a/addons/account/views/report_tax.xml +++ b/addons/account/views/report_tax.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/report_trialbalance.xml b/addons/account/views/report_trialbalance.xml index b8c0281616..37d4c52d0a 100644 --- a/addons/account/views/report_trialbalance.xml +++ b/addons/account/views/report_trialbalance.xml @@ -1,5 +1,5 @@ - + - + diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index f61cf860d8..2fbc2944e7 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -1,5 +1,5 @@ - + Chart Templates @@ -482,4 +482,4 @@ - + diff --git a/addons/account/views/tax_adjustments.xml b/addons/account/views/tax_adjustments.xml index 06a40882fb..62106f74e1 100644 --- a/addons/account/views/tax_adjustments.xml +++ b/addons/account/views/tax_adjustments.xml @@ -1,5 +1,5 @@ - + Tax Adjustments tax.adjustments.wizard @@ -8,4 +8,4 @@ new - + diff --git a/addons/account/views/web_planner_data.xml b/addons/account/views/web_planner_data.xml index 9284bb7166..bdc1fc3625 100644 --- a/addons/account/views/web_planner_data.xml +++ b/addons/account/views/web_planner_data.xml @@ -1,6 +1,6 @@ - + - + diff --git a/addons/base_import_module/views/base_import_module_view.xml b/addons/base_import_module/views/base_import_module_view.xml index 60af0d3fc6..fbc881849c 100644 --- a/addons/base_import_module/views/base_import_module_view.xml +++ b/addons/base_import_module/views/base_import_module_view.xml @@ -1,5 +1,5 @@ - + base.import.module.form @@ -48,5 +48,5 @@ groups="base.group_no_one" sequence="100"/> - + diff --git a/addons/base_setup/__init__.py b/addons/base_setup/__init__.py index dc5e6b693d..013872cc0d 100644 --- a/addons/base_setup/__init__.py +++ b/addons/base_setup/__init__.py @@ -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 models diff --git a/addons/base_setup/__manifest__.py b/addons/base_setup/__manifest__.py index cbd4a0d532..05962243c8 100644 --- a/addons/base_setup/__manifest__.py +++ b/addons/base_setup/__manifest__.py @@ -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. { 'name': 'Initial Setup Tools', 'version': '1.0', diff --git a/addons/base_setup/models/__init__.py b/addons/base_setup/models/__init__.py index 9fdfb603d9..6982fbf600 100644 --- a/addons/base_setup/models/__init__.py +++ b/addons/base_setup/models/__init__.py @@ -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 res_config_settings diff --git a/addons/base_setup/models/res_config_settings.py b/addons/base_setup/models/res_config_settings.py index 32946bf4a5..3d8f52e7ee 100644 --- a/addons/base_setup/models/res_config_settings.py +++ b/addons/base_setup/models/res_config_settings.py @@ -1,7 +1,7 @@ # -*- 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 odoo import api, fields, models, _ +from flectra import api, fields, models, _ class ResConfigSettings(models.TransientModel): diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml index 12b60ef591..e9d1894e6c 100644 --- a/addons/base_setup/views/res_config_settings_views.xml +++ b/addons/base_setup/views/res_config_settings_views.xml @@ -1,5 +1,5 @@ - + res.config.settings.view.form.inherit.base.setup res.config.settings @@ -126,7 +126,7 @@