Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

how can I get my im_chat_history Module to work under odoo 8.0?

Odebírat

Get notified when there's activity on this post

This question has been flagged
im_chat
1 Odpovědět
5807 Zobrazení
Avatar
gunnar

I have a custom Module that adds a menu "IM". It provides a list of all internal instant Messages between odoo users and they can be searched with the standard odoo search

The Module [im_chat] by default stores these messages in the database already but it doesn't provide a view to list and Search them. That is what my Module [im_chat_history] adds to it.

IMPORTANT: I am not talking about the more advanced "Live Chat"  [im_livechat] Module (which has a built-in messaging history for external chats as they come in for a support chat from a website for example)

This [im_chat_history] module has originally been been made for an OpenERP 7.0 (actually saas1) "Instant Messaging" Module [im] and I am trying to make it work with odoo 8.0 im_chat

I have already adjusted the Module in some parts (changing dependencies from 'im' to 'im_chat' and several small things). As I don't have any programming skills my capabilities are pretty limited here
I can do an "Update Modules list" but installation fails

/var/log/odoo/odoo-server.log looks like this:

2014-10-23 13:20:38,147 1691 INFO odoo-8_test openerp.modules.loading: loading 1 modules...
2014-10-23 13:20:38,358 1691 INFO odoo-8_test openerp.modules.loading: 1 modules loaded in 0.21s, 0 queries
2014-10-23 13:20:38,392 1691 INFO odoo-8_test openerp.modules.loading: loading 41 modules...
2014-10-23 13:20:39,422 1691 INFO odoo-8_test openerp.modules.loading: 41 modules loaded in 1.03s, 0 queries
2014-10-23 13:20:39,426 1691 INFO odoo-8_test openerp.modules.loading: loading 42 modules...
2014-10-23 13:20:39,427 1691 CRITICAL odoo-8_test openerp.modules.module: Couldn't load module im_chat_history
2014-10-23 13:20:39,427 1691 CRITICAL odoo-8_test openerp.modules.module: No module named im_chat
2014-10-23 13:20:39,427 1691 ERROR odoo-8_test openerp.http: Exception during JSON request handling.
2014-10-23 13:20:39,429 1691 INFO odoo-8_test werkzeug: 192.168.1.241 - - [23/Oct/2014 13:20:39] "POST /web/dataset/call_button HTTP/1.0" 200 -


I don't get much out of that but "... No module named im_chat" seems weird to me because there IS a module im_chat (and it is installed as well)

Also it would be niver whether it didn't add a Menu on the Top of the screen but adding a submenu (on the left) when you do to inside of 'Messaging' (where you open the Calender, or edit "My Groups"

the code is to be found here https://github.com/vrms/odoo_im_chat_history   (branch 'master') or just take a look at it below:

=================================

__init__.py

import im

=================================

__openerp__.py

{

"name" : "Instant messaging history",

"version" : "1.0",

"author" : "L",

"category" : "Generic Modules/Human Resources",

"website" : "-",

"description": "Adds history view to imstant messaging module.",

"depends" : ["im"],

"init_xml" : [],

"update_xml" : ["im_view.xml"],

"installable": True

}

=================================

im.py

from openerp.osv import fields,osv

class im_history(osv.osv):

_inherit = 'im.message'

im_history()

=================================

im_view.xml

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<record id="view_im_history" model="ir.ui.view">

<field name="name">im.message.tree</field>

<field name="model">im.message</field>

<field name="arch" type="xml">

<tree string="IM">

<field name="date"/>

<field name="from_id"/>

<field name="to_id"/>

<field name="message"/>

</tree>

</field>

</record>

<!-- Top menu item -->

<menuitem name="IM"

id="im_history_root"

groups="base.group_user"

sequence="10"/>

<record id="open_view_im_history" model="ir.actions.act_window">

<field name="name">Instant messaging history</field>

<field name="res_model">im.message</field>

<field name="view_type">form</field>

<field name="view_mode">tree</field>

<field name="view_id" ref="view_im_history"/>

</record>

<menuitem name="Actions" id="im_history" parent="im_history_root" groups="base.group_user"/>

<menuitem action="open_view_im_history" id="menu_open_view_im_history" parent="im_history" sequence="20" groups="base.group_user"/>

</data>

</openerp>

EDIT: I reverted the code above to my original branch saas1

0
Avatar
Zrušit
Vee

Hi, confused at your karma points and your question. But maybe again check your _openerp_.py file. "update_xml" : ["im_view.xml"], I would USE...: 'data': ['im_view.xml'], And next. it's the _inherit that needs checking after that. Good luck

gunnar
Autor

thanks for your feedback. Karma sums up upon activity in this forum not upon skills in python or coding ... so much for that. I have tried your suggested change >> data': ['im_view.xml'], in line 10 in my _openerp_.py file but that does not help with my symptoms (can't install the module with an error message "ImportError: No module named im_chat"). I have no idea about coding, or Python and I don't quite know what to do with your second suggestion "the _inherit that needs checking". The only time the term "inherit" appears is in line 4 of my im.py >> _inherit = 'im.message'. Any suggestion what might need to be changed there?

Vee

Pls look at __init__.py to understand this you are not referencing the right .py file name. it should be im.py ..right???

gunnar
Autor

that was not it. the error now is " File "/opt/odoo/odoo-server/addons-custom/im_chat_history/__init__.py", line 2, in import im.py ImportError: No module named py“ I think that this "import im_chat" is meant to import the installed module [im_chat] (which my module depends on). The same construction worked under the priginal version [saas1] of my im_chat_history. Just back then the Module it depended on was call [im] (now [im_chat])

Avatar
Mohammed Roshan
Nejlepší odpověď

Try this

__init__.py

import im

__openerp__.py

{

    "name" : "Instant messaging history",

    "version" : "1.0",

    "author" : "L",

    "category" : "Generic Modules/Human Resources",

    "website" : "-",

    "description": "Adds history view to imstant messaging module.",

    "depends" : ["im_chat"],

    "init_xml" : [],

    'data':["im_view.xml"],

    "installable": True

}

 

im.py


from openerp.osv import fields,osv
class im_history(osv.osv):

        _inherit = 'im_chat.message'

im_history()

im_view.xml

<?xml version="1.0" encoding="utf-8"?>

    <openerp>

    <data>

    <record id="view_im_history" model="ir.ui.view">

    <field name="name">im_chat.message.tree</field>

    <field name="model">im_chat.message</field>

    <field name="arch" type="xml">

    <tree string="IM">

    <field name="create_date"/>

    <field name="from_id"/>

    <field name="to_id"/>

    <field name="message"/>

    </tree>

    </field>

    </record>

    <!-- Top menu item -->

    <menuitem name="IM"

    id="im_history_root"

    groups="base.group_user"

    sequence="10"/>

    <record id="open_view_im_history" model="ir.actions.act_window">

    <field name="name">Instant messaging history</field>

    <field name="res_model">im_chat.message</field>

    <field name="view_type">form</field>

    <field name="view_mode">tree</field>

    <field name="view_id" ref="view_im_history"/>

    </record>

    <menuitem name="Actions" id="im_history" parent="im_history_root" groups="base.group_user"/>

    <menuitem action="open_view_im_history" id="menu_open_view_im_history" parent="im_history" sequence="20" groups="base.group_user"/>

    </data>

    </openerp>

It worked for me in odoo 8

 

 

0
Avatar
Zrušit
gunnar
Autor

thanks Mohammed. Looks like the indentation is ruined by the forum formatting, so I can't get it running. Tried to fix the indentation manually but that just lead from one error message to another. Do you have your code on github or elsewhere maybe?

gunnar
Autor

is that your github? https://github.com/elgenioroshan. If yes,wold you mind to fork my repo, and just add your branch?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
[v8] how can you search through instant messages?
im_chat
Avatar
0
bře 15
3412
Odoo im chat is taking too long to send message
error production help wrong im_chat
Avatar
Avatar
1
pro 20
8511
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now