-
Notifications
You must be signed in to change notification settings - Fork 110
[IMP] #101
base: 11.0
Are you sure you want to change the base?
[IMP] #101
Conversation
First Telegram Odoo v11 working version: Module telegram is functional for version 11 /login command working now /help command working /users and /user_%# commands working /me command working /logout command working TODO: Make work /pipeline from telegram_crm Make work /new_issues from telegram_project_issue Allow create buttons and add new records to Partners, Issues, Sale Orders
telegram/telegram.py
Outdated
@@ -338,6 +340,7 @@ def _update_locals_dict(self, locals_dict, tsession): | |||
@api.multi | |||
def _eval(self, code, locals_dict=None, tsession=None): | |||
"""Prepare data for rendering""" | |||
#import pdb; pdb.set_trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block comment should start with '# '
telegram/telegram.py
Outdated
@@ -287,6 +288,7 @@ def eval_post_response(self, tsession): | |||
def eval_notification(self, event, tsession): | |||
self.ensure_one() | |||
# TODO: tsession can be multi recordset | |||
#import pdb; pdb.set_trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block comment should start with '# '
@@ -393,7 +395,9 @@ def _render(self, template, locals_dict, tsession): | |||
f = photo['data'] | |||
else: | |||
# type is 'base64' by default | |||
f = io.StringIO(base64.b64decode(photo['data'])) | |||
#f = io.StringIO(base64.b64decode(photo['data'])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block comment should start with '# '
from odoo.addons.base_geoengine import geo_model | ||
from odoo.exceptions import ValidationError | ||
|
||
class TelegramSession(models.Model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected 2 blank lines, found 1
|
||
from odoo.addons.base_geoengine import fields as geo_fields | ||
from odoo.addons.base_geoengine import geo_model | ||
from odoo.exceptions import ValidationError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'odoo.exceptions.ValidationError' imported but unused
import urllib as my_urllib | ||
|
||
from odoo.addons.base_geoengine import fields as geo_fields | ||
from odoo.addons.base_geoengine import geo_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'odoo.addons.base_geoengine.geo_model' imported but unused
|
||
import urllib as my_urllib | ||
|
||
from odoo.addons.base_geoengine import fields as geo_fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'odoo.addons.base_geoengine.fields as geo_fields' imported but unused
|
||
from itertools import groupby | ||
|
||
import urllib as my_urllib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'urllib as my_urllib' imported but unused
|
||
from odoo.addons.base_geoengine import fields as geo_fields | ||
from odoo.addons.base_geoengine import geo_model | ||
from odoo.exceptions import ValidationError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'odoo.exceptions.ValidationError' imported but unused
import urllib as my_urllib | ||
|
||
from odoo.addons.base_geoengine import fields as geo_fields | ||
from odoo.addons.base_geoengine import geo_model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'odoo.addons.base_geoengine.geo_model' imported but unused
|
||
import urllib as my_urllib | ||
|
||
from odoo.addons.base_geoengine import fields as geo_fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'odoo.addons.base_geoengine.fields as geo_fields' imported but unused
|
||
from itertools import groupby | ||
|
||
import urllib as my_urllib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'urllib as my_urllib' imported but unused
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT, float_compare | ||
from odoo.exceptions import UserError | ||
|
||
from itertools import groupby |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'itertools.groupby' imported but unused
Travis changes config