[REN] rename namespace

This commit is contained in:
Flectra 2018-01-16 02:34:37 -08:00
parent 769eafb483
commit b79252ec3e
4392 changed files with 10147 additions and 10144 deletions

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.
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']

View File

@ -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': [

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 mail
from . import portal

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 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):

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.
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):

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data noupdate="1">
<!-- TAGS FOR CASH FLOW STATEMENT -->
@ -161,4 +161,4 @@
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data noupdate="1">
<!-- account.account.type -->
<record model="account.account.type" id="data_account_type_receivable">
@ -81,5 +81,5 @@
<field name="type">other</field>
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<odoo>
<flectra>
<!-- Mail template are declared in a NOUPDATE block
so users can freely customize/delete them -->
@ -128,7 +128,7 @@ from ${object.company_id.name}.
</tr>
<tr>
<td align="center">
Powered by <a target="_blank" href="https://www.odoo.com">Odoo</a>.
Powered by <a target="_blank" href="https://www.flectra.com">Flectra</a>.
</td>
</tr>
</tbody>
@ -137,4 +137,4 @@ from ${object.company_id.name}.
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data noupdate="1">
<!--Email template -->
@ -42,4 +42,4 @@ ${user.signature | safe}
}"
/>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<!-- TAGS FOR RETRIEVING THE DEMO ACCOUNTS -->
@ -53,4 +53,4 @@
<field name="property_supplier_payment_term_id" ref="account_payment_term"/>
</record>
</data>
</odoo>
</flectra>

View File

@ -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)

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from odoo import api, fields, models, _
from flectra import api, fields, models, _
from math import copysign

View File

@ -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.'))

View File

@ -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):

View File

@ -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__)

View File

@ -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"

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -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):

View File

@ -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'

View File

@ -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):

View File

@ -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):

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from odoo import api, models
from flectra import api, models
class PlannerAccount(models.Model):

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 account_financial_report
from . import account_invoice_report

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<record id="view_account_invoice_report_pivot" model="ir.ui.view">
<field name="name">account.invoice.report.pivot</field>
@ -132,4 +132,4 @@
view_mode="graph"/>
</data>
</odoo>
</flectra>

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_payment_receipt">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
@ -57,4 +57,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -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):

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data noupdate="0">
<record id="group_account_invoice" model="res.groups">
@ -150,4 +150,4 @@
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
</record>
</data>
</odoo>
</flectra>

View File

@ -28,4 +28,4 @@
.o_payment_label{
padding-right: 20px;
}
}

View File

@ -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.
},

View File

@ -1,4 +1,4 @@
odoo.define('account.payment', function (require) {
flectra.define('account.payment', function (require) {
"use strict";
var AbstractField = require('web.AbstractField');

View File

@ -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;

View File

@ -1,4 +1,4 @@
odoo.define('account.ReconciliationModel', function (require) {
flectra.define('account.ReconciliationModel', function (require) {
"use strict";
var BasicModel = require('web.BasicModel');

View File

@ -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();

View File

@ -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');

View File

@ -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;

View File

@ -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;
}
}
}

View File

@ -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%;
}

View File

@ -21,7 +21,7 @@
</div>
<div aria-valuemin="0" t-att-aria-valuenow="widget._initialState.valuenow" class="progress-bar" role="progressbar" style="width: 0%;" t-att-aria-valuemax="widget._initialState.valuemax"></div>
</div>
<button class="btn btn-default o_automatic_reconciliation pull-right" title="Let odoo try to reconcile entries for the user">Automatic reconciliation</button>
<button class="btn btn-default o_automatic_reconciliation pull-right" title="Let flectra try to reconcile entries for the user">Automatic reconciliation</button>
<div class="notification_area"/>
</div>
<div class="o_reconciliation_lines"/>

View File

@ -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');

View File

@ -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');

View File

@ -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,

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data noupdate="0">
<!-- This should be loaded for non python tests in other modules that require accounting test data but that don't depend on any localization -->
@ -307,4 +307,4 @@
<field name="company_id" ref="base.main_company"/>
</record>
</data>
</odoo>
</flectra>

View File

@ -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')

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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):
"""

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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")

View File

@ -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).

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from odoo.tests.common import HttpCase
from flectra.tests.common import HttpCase
class AccountingTestTemplConsistency(HttpCase):

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="assets_backend" name="account assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/account/static/src/css/account_bank_and_cash.css"/>
@ -25,4 +25,4 @@
<script type="text/javascript" src="/account/static/tests/account_dashboard_setup_bar_tests.js"></script>
</xpath>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<record id="view_account_analytic_line_form_inherit_account" model="ir.ui.view">
<field name="name">account.analytic.line.form.inherit.account</field>
@ -102,4 +102,4 @@
groups="analytic.group_analytic_accounting"/>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<!-- Action -->
<record id="rounding_list_action" model="ir.actions.act_window">
@ -61,4 +61,4 @@
<menuitem id="menu_action_rounding_form_view" action="rounding_list_action"
groups="account.group_cash_rounding" parent="account_management_menu" sequence="4"/>
</data>
</odoo>
</flectra>

View File

@ -1,4 +1,4 @@
<odoo>
<flectra>
<record id="account_journal_dashboard_kanban_view_js" model="ir.ui.view">
<field name="name">account.journal.dashboard.kanban.js</field>
<field name="model">account.journal</field>
@ -9,4 +9,4 @@
</xpath>
</field>
</record>
</odoo>
</flectra>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data noupdate="1">
<!--
Financial Reports
@ -65,4 +65,4 @@
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<!-- Invoices -->
@ -665,7 +665,7 @@
<p class="oe_view_nocontent_create">
Click to create a customer invoice.
</p><p>
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"/>
</data>
</odoo>
</flectra>

View File

@ -1,4 +1,4 @@
<odoo>
<flectra>
<record id="account_journal_dashboard_kanban_view" model="ir.ui.view">
<field name="name">account.journal.dashboard.kanban</field>
<field name="model">account.journal</field>
@ -246,7 +246,7 @@
<div class="col-xs-6 o_kanban_primary_right">
<div class="row">
<div class="col-xs-6">
<span title="Balance in Odoo">Balance in GL</span>
<span title="Balance in Flectra">Balance in GL</span>
</div>
<div class="col-xs-6 text-right">
<span><t t-esc="dashboard.account_balance"/></span>
@ -332,4 +332,4 @@
</record>
<menuitem id="menu_board_journal_1" name="Dashboard" action="open_account_journal_dashboard_kanban" parent="menu_finance" sequence="1" groups="account.group_account_user"/>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<!-- Top menu item -->
@ -46,5 +46,5 @@
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<record id="view_account_payment_tree" model="ir.ui.view">
@ -342,4 +342,4 @@ records.post()
</record>
</data>
</odoo>
</flectra>

View File

@ -1,4 +1,4 @@
<odoo>
<flectra>
<template id="portal_my_home_menu_invoice" name="Portal layout : invoice menu entries" inherit_id="portal.portal_layout" priority="30">
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
<li t-if="page_name == 'invoice'" class="active">
@ -270,4 +270,4 @@
</div>
</div>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<!-- QWeb Reports -->
<report
@ -109,4 +109,4 @@
/>
</data>
</odoo>
</flectra>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<flectra>
<data>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<!-- This file must be loaded _after_ account_demo.xml ! -->
<record id="test_invoice_1" model="account.invoice">
@ -59,4 +59,4 @@
<test expr="state">paid</test>
</assert>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
@ -719,7 +719,7 @@
occurring over a given period of time on a bank account. You
should receive this periodicaly from your bank.
</p><p>
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.
</p>
</field>
@ -802,7 +802,7 @@
<p>
A bank statement line is a financial transaction on a bank account.
</p><p>
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).
</p>
</field>
@ -1526,7 +1526,7 @@
A journal entry consists of several journal items, each of
which is either a debit or a credit transaction.
</p><p>
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 @@
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<record id="view_account_position_form" model="ir.ui.view">
@ -212,4 +212,4 @@
</field>
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.template.form.inherit</field>
@ -46,4 +46,4 @@
</field>
</record>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_agedpartnerbalance">
<t t-call="web.html_container">
<t t-call="web.internal_layout">
@ -92,4 +92,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_financial">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
@ -107,4 +107,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_generalledger">
<t t-call="web.html_container">
@ -104,4 +104,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<template id="report_invoice_document">
<t t-call="web.external_layout">
@ -193,4 +193,4 @@
</t>
</template>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_journal">
<t t-call="web.html_container">
<t t-set="data_report_margin_top" t-value="12"/>
@ -100,4 +100,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="account.report_overdue_document">
<t t-call="web.external_layout">
<div class="page">
@ -85,4 +85,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_partnerledger">
<t t-call="web.html_container">
<t t-set="data_report_margin_top" t-value="12"/>
@ -90,4 +90,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_tax">
<t t-call="web.html_container">
<t t-call="web.internal_layout">
@ -36,4 +36,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<template id="report_trialbalance">
<t t-call="web.html_container">
<t t-call="web.internal_layout">
@ -65,4 +65,4 @@
</t>
</t>
</template>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<data>
<record id="open_account_charts_modules" model="ir.actions.act_window">
<field name="name">Chart Templates</field>
@ -482,4 +482,4 @@
<menuitem id="menu_account_config" name="Settings" parent="menu_finance_configuration"
sequence="0" action="action_account_config" groups="base.group_system"/>
</data>
</odoo>
</flectra>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<flectra>
<record id="tax_adjustments_form" model="ir.actions.act_window">
<field name="name">Tax Adjustments</field>
<field name="res_model">tax.adjustments.wizard</field>
@ -8,4 +8,4 @@
<field name="target">new</field>
</record>
<menuitem action="tax_adjustments_form" id="menu_action_tax_adjustment" parent="account.menu_finance_entries_actions" sequence="30"/>
</odoo>
</flectra>

Some files were not shown because too many files have changed in this diff Show More