mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 20:30:20 -06:00
[REN] rename namespace
This commit is contained in:
1 parent
769eafb483
commit
b79252ec3e
4392 files changed
+10147
-10144
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import controllers
|
||||
from . import models
|
||||
|
||||
@@ -1,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': 'Calendar',
|
||||
@@ -19,7 +19,7 @@ It supports:
|
||||
If you need to manage your meetings, you should install the CRM module.
|
||||
""",
|
||||
'category': 'Extra Tools',
|
||||
'website': 'https://www.odoo.com/page/crm',
|
||||
'website': 'https://flectrahq.com/page/crm',
|
||||
'demo': [
|
||||
'data/calendar_demo.xml'
|
||||
],
|
||||
|
||||
@@ -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 main
|
||||
from . import bus
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*
|
||||
|
||||
from odoo.addons.bus.controllers.main import BusController
|
||||
from odoo.http import request
|
||||
from flectra.addons.bus.controllers.main import BusController
|
||||
from flectra.http import request
|
||||
|
||||
|
||||
class CalendarBusController(BusController):
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# -*- 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.api import Environment
|
||||
import odoo.http as http
|
||||
from flectra.api import Environment
|
||||
import flectra.http as http
|
||||
|
||||
from odoo.http import request
|
||||
from odoo import SUPERUSER_ID
|
||||
from odoo import registry as registry_get
|
||||
from flectra.http import request
|
||||
from flectra import SUPERUSER_ID
|
||||
from flectra import registry as registry_get
|
||||
|
||||
|
||||
class CalendarController(http.Controller):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
<data noupdate="1">
|
||||
<!-- Scheduler for Event Alarm-->
|
||||
<record forcecreate="True" id="ir_cron_scheduler_alarm" model="ir.cron">
|
||||
@@ -15,4 +15,4 @@
|
||||
<field eval="False" name="doall" />
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
<data noupdate="1">
|
||||
|
||||
<!-- Expense-related subtypes for messaging / Chatter -->
|
||||
@@ -347,4 +347,4 @@
|
||||
</div>]]></field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
<data noupdate="1">
|
||||
|
||||
<record id="cal_contact_1" model="calendar.contacts">
|
||||
@@ -107,4 +107,4 @@
|
||||
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
<data noupdate="1">
|
||||
<record id="mail.mail_activity_data_meeting" model="mail.activity.type">
|
||||
<field name="category">meeting</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -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 ir_attachment
|
||||
from . import ir_http
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
||||
import base64
|
||||
|
||||
import babel.dates
|
||||
@@ -15,11 +15,11 @@ import re
|
||||
import time
|
||||
import uuid
|
||||
|
||||
from odoo import api, fields, models
|
||||
from odoo import tools
|
||||
from odoo.tools.translate import _
|
||||
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, pycompat
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
from flectra import api, fields, models
|
||||
from flectra import tools
|
||||
from flectra.tools.translate import _
|
||||
from flectra.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, pycompat
|
||||
from flectra.exceptions import UserError, ValidationError
|
||||
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
@@ -183,7 +183,7 @@ class Attendee(models.Model):
|
||||
'color': colors,
|
||||
'action_id': self.env['ir.actions.act_window'].search([('view_id', '=', calendar_view.id)], limit=1).id,
|
||||
'dbname': self._cr.dbname,
|
||||
'base_url': self.env['ir.config_parameter'].sudo().get_param('web.base.url', default='http://localhost:8069')
|
||||
'base_url': self.env['ir.config_parameter'].sudo().get_param('web.base.url', default='http://localhost:7073')
|
||||
})
|
||||
invitation_template = invitation_template.with_context(rendering_context)
|
||||
|
||||
@@ -978,7 +978,7 @@ class Meeting(models.Model):
|
||||
elif interval == 'minutes':
|
||||
delta = timedelta(minutes=duration)
|
||||
trigger.value = delta
|
||||
valarm.add('DESCRIPTION').value = alarm.name or u'Odoo'
|
||||
valarm.add('DESCRIPTION').value = alarm.name or u'Flectra'
|
||||
for attendee in meeting.attendee_ids:
|
||||
attendee_add = event.add('attendee')
|
||||
attendee_add.value = u'MAILTO:' + (attendee.email or u'')
|
||||
@@ -1243,7 +1243,7 @@ class Meeting(models.Model):
|
||||
data['month_by'] = 'date'
|
||||
data['rrule_type'] = 'monthly'
|
||||
|
||||
#repeat yearly but for odoo it's monthly, take same information as monthly but interval is 12 times
|
||||
#repeat yearly but for flectra it's monthly, take same information as monthly but interval is 12 times
|
||||
if rule._bymonth:
|
||||
data['interval'] = data['interval'] * 12
|
||||
|
||||
|
||||
@@ -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 api, models
|
||||
from flectra import api, models
|
||||
|
||||
from odoo.addons.calendar.models.calendar import get_real_ids
|
||||
from flectra.addons.calendar.models.calendar import get_real_ids
|
||||
|
||||
from odoo.tools import pycompat
|
||||
from flectra.tools import pycompat
|
||||
|
||||
|
||||
class Attachment(models.Model):
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# -*- 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 odoo
|
||||
from odoo import models, SUPERUSER_ID
|
||||
from odoo.http import request
|
||||
from odoo.api import Environment
|
||||
import flectra
|
||||
from flectra import models, SUPERUSER_ID
|
||||
from flectra.http import request
|
||||
from flectra.api import Environment
|
||||
|
||||
from werkzeug.exceptions import BadRequest
|
||||
|
||||
@@ -17,7 +17,7 @@ class IrHttp(models.AbstractModel):
|
||||
token = request.params['token']
|
||||
dbname = request.params['db']
|
||||
|
||||
registry = odoo.registry(dbname)
|
||||
registry = flectra.registry(dbname)
|
||||
error_message = False
|
||||
with registry.cursor() as cr:
|
||||
env = Environment(cr, SUPERUSER_ID, {})
|
||||
|
||||
@@ -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, tools, _
|
||||
from flectra import api, models, fields, tools, _
|
||||
|
||||
|
||||
class MailActivityType(models.Model):
|
||||
|
||||
@@ -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 api, models
|
||||
from flectra import api, models
|
||||
|
||||
from odoo.addons.calendar.models.calendar import get_real_ids
|
||||
from flectra.addons.calendar.models.calendar import get_real_ids
|
||||
|
||||
from odoo.tools import pycompat
|
||||
from flectra.tools import pycompat
|
||||
|
||||
|
||||
class Message(models.Model):
|
||||
|
||||
@@ -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 datetime import datetime
|
||||
|
||||
from odoo import api, fields, models
|
||||
from flectra import api, fields, models
|
||||
|
||||
from odoo.addons.calendar.models.calendar import get_real_ids
|
||||
from flectra.addons.calendar.models.calendar import get_real_ids
|
||||
|
||||
|
||||
class Partner(models.Model):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
<data noupdate="1">
|
||||
|
||||
<record id="calendar_event_rule_my" model="ir.rule">
|
||||
@@ -34,4 +34,4 @@
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -1,4 +1,4 @@
|
||||
odoo.define('base_calendar.base_calendar', function (require) {
|
||||
flectra.define('base_calendar.base_calendar', function (require) {
|
||||
"use strict";
|
||||
|
||||
var bus = require('bus.bus').bus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
odoo.define('calendar.Activity', function (require) {
|
||||
flectra.define('calendar.Activity', function (require) {
|
||||
"use strict";
|
||||
|
||||
var Activity = require('mail.Activity');
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
&.needsAction {
|
||||
background-color: @odoo-brand-secondary;
|
||||
background-color: @flectra-brand-secondary;
|
||||
}
|
||||
|
||||
&.declined {
|
||||
@@ -46,7 +46,7 @@
|
||||
width: 50%;
|
||||
margin: 30px auto 0;
|
||||
.o-webclient-padding(@top: 10px, @bottom: 10px);
|
||||
background-color: @odoo-view-background-color;
|
||||
background-color: @flectra-view-background-color;
|
||||
|
||||
.o_logo {
|
||||
width: 15%;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
odoo.define('calendar.tests', function (require) {
|
||||
flectra.define('calendar.tests', function (require) {
|
||||
"use strict";
|
||||
|
||||
var FormView = require('web.FormView');
|
||||
|
||||
@@ -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 test_calendar
|
||||
from . import test_calendar_recurrent_event_case2
|
||||
@@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
||||
import datetime
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
from odoo import fields
|
||||
from odoo.tests.common import TransactionCase
|
||||
from flectra import fields
|
||||
from flectra.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestCalendar(TransactionCase):
|
||||
@@ -19,9 +19,9 @@ class TestCalendar(TransactionCase):
|
||||
'privacy': 'private',
|
||||
'start': '2011-04-30 16:00:00',
|
||||
'stop': '2011-04-30 18:30:00',
|
||||
'description': 'The Technical Presentation will cover following topics:\n* Creating Odoo class\n* Views\n* Wizards\n* Workflows',
|
||||
'description': 'The Technical Presentation will cover following topics:\n* Creating Flectra class\n* Views\n* Wizards\n* Workflows',
|
||||
'duration': 2.5,
|
||||
'location': 'Odoo S.A.',
|
||||
'location': 'Flectra S.A.',
|
||||
'name': 'Technical Presentation'
|
||||
})
|
||||
|
||||
|
||||
@@ -1,8 +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.
|
||||
|
||||
from odoo.tests import common
|
||||
from odoo.addons.calendar.models.calendar import calendar_id2real_id
|
||||
from flectra.tests import common
|
||||
from flectra.addons.calendar.models.calendar import calendar_id2real_id
|
||||
|
||||
|
||||
class TestRecurrentEvent(common.TransactionCase):
|
||||
@@ -13,7 +13,7 @@ class TestRecurrentEvent(common.TransactionCase):
|
||||
self.CalendarEvent = self.env['calendar.event']
|
||||
|
||||
def test_recurrent_meeting1(self):
|
||||
# In order to test recurrent meetings in Odoo, I create meetings with different recurrence using different test cases.
|
||||
# In order to test recurrent meetings in Flectra, I create meetings with different recurrence using different test cases.
|
||||
# I create a recurrent meeting with daily recurrence and fixed amount of time.
|
||||
self.CalendarEvent.create({
|
||||
'count': 5,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
<template id="assets_backend" name="calendar assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/calendar/static/src/less/calendar.less"/>
|
||||
@@ -70,4 +70,4 @@
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
|
||||
<!-- Calendar Events Types : Views and Actions -->
|
||||
<record id="view_calendar_event_type_tree" model="ir.ui.view">
|
||||
@@ -378,4 +378,4 @@
|
||||
<field name="view_id" ref="view_calendar_event_form"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<flectra>
|
||||
|
||||
<record id="mail_activity_type_view_form" model="ir.ui.view">
|
||||
<field name="name">mail.activity.type.form.inherit.calendar</field>
|
||||
@@ -42,4 +42,4 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
</flectra>
|
||||
@@ -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 mail_invite
|
||||
@@ -1,9 +1,9 @@
|
||||
# -*- 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
|
||||
from flectra import api, models
|
||||
|
||||
from odoo.addons.calendar.models.calendar import get_real_ids
|
||||
from flectra.addons.calendar.models.calendar import get_real_ids
|
||||
|
||||
|
||||
class MailInvite(models.TransientModel):
|
||||
|
||||
Reference in new issue
Block a user