openerp

How to disable the close button in GTK?

被刻印的时光 ゝ 提交于 2019-12-10 11:46:12
问题 I have created a One Time Password mechanism in OpenERP 6.0.3's GTK client. After login the GTK client shows a window to enter the One Time Password as below. Now I want to disable the close button at the top left of the window. How can I do that? I am using python and the code to create the window is: EDIT class sms_auth(gtk.Dialog): def run_thread(self): code=self.textbox_code.get_text() self.result = rpc.session.rpc_exec_auth('/object', 'execute', 'res.users', 'check_code', code) return

Field readonly and groups attribute

和自甴很熟 提交于 2019-12-10 11:24:08
问题 I wish to make a field readonly in Openerp 6.1 views. I want the field to be readonly for all groups but specific groups, let's say manager should be able to edit it while others should be able to only view. I am not clear how to do it in a view ? Please suggest. Thanks. 回答1: you need to share more information about wht model(module ) and what view are we talking about. It its a base module then the only way might be to inherit it and then make changes. You can try the below short cut but I

Compute method is called multiple times?

主宰稳场 提交于 2019-12-10 10:37:00
问题 I found out that this probably isn't concurrency problem as the method is recalled JUST WHEN I TRY TO UPDATE THE sync.test.subject.b 's separated_chars FIELD (at the end of the method). So I can't solve this with thread locking as the method actually waits for itself to be called again. I don't get it this is a totally bizarre behavior. I found a weird behavior while updating computed fields. In this case codes are better than words: Models: from openerp import models, fields, api, _ class

How to run Odoo tests unittest2?

怎甘沉沦 提交于 2019-12-10 10:36:39
问题 I tried running odoo tests using --test-enable, but it won't work. I have a couple of questions. According to the documentation Tests can only be run during module installation, what happens when we add functionality and then want to run tests? Is it possible to run tests from IDE like Pycharm ? 回答1: @aftab You need add log-level please see below. ./odoo.py -d <dbname> --test-enable --log-level=test and regarding you question, If you are making changes to installed modules and need to re test

How to upgrade OpenERP 5.0 to 6.0

做~自己de王妃 提交于 2019-12-10 10:27:18
问题 I have an OpenERP 5.0 installation with a few custom modules, that I wish to upgrade to OpenERP 6.0. I have some experience with this kind of sofware and I have inspected OpenERP. Sadly, I don't have actual experience with OpenERP, and I like to ask for some help in order to avoid mistakes. When researching this, I found there are several strategies (ETL processes, data-upgrade modules)... I assume I'll need to review all custom modules. What are the guidelines or best practice in order to

Is there anyone integratted ODOO with Android?

夙愿已清 提交于 2019-12-10 10:07:28
问题 I am currently developing an android application for a client who is insisting to use Odoo for API.I don't have any single idea about it I am not getting it any even after referring this link.They provide a URL, Database name, username, and password.If any one did Odoo with Android before, Can you give any suggestions? 回答1: There are a lot of ways to connect Android to Odoo. Here they are: Json-RPC XML-RPC (especially aXMLRPC, this is what I am using) There is also a framework called Odoo

OpenERP - redirected to “Create a New Database” page when accessing Odoo application

大兔子大兔子 提交于 2019-12-10 09:48:30
问题 When I try to access my Odoo 8 application I am redirected to Database Management menu and page "Create a New Database". However, there is a database in the system, I can see it through pgAdmin fine, and it worked all the time until now. As far as I know I have not changed anything. How I can make Odoo 8 connecting to already present database again as it did before? Thanks for your help! 回答1: You should also check the ownership of the database. If you restore it from psql, make sure you set

How to migrate an Openerp v7 database to Odoo v8?

我与影子孤独终老i 提交于 2019-12-10 09:46:01
问题 I have a dump file of database backup(openerp-7). Now I want to continue my work in Odoo, the database is in openerp-7 format so I am not able to restore it in Odoo. How to convert this database to Odoo version in order to start working on it? 回答1: You must do a data migration. That's not an easy task. You can use some of this migration tools: OpenUpgrade. Or you can use some ETL tool such as Odoo ETL If you only want migrate some table you can export it in a CSV file and import it in Odoo

<pageCount/> not rendering in OpenERP 7

独自空忆成欢 提交于 2019-12-10 02:29:16
问题 I am working with OpenERP 7 I want to modify my invoice report footer to show the current page and the total number of pages like this : page:1/2 in the first page and page:2/2 in the second page... this is my code: <place x="1.3cm" y="0cm" height="1.55cm" width="19.0cm"> <para style="main_footer">[[ company.rml_footer ]]</para> <para style="main_footer">Page: <pageNumber/>/<pageCount/></para> </place> but pageCount don't return any number. What's wrong ? 回答1: Hello everybody and thank you

Recover admin password and email Odoo server

我是研究僧i 提交于 2019-12-09 11:03:42
问题 Months ago, I installed an Odoo server and it worked perfectly ! Problem is that I forgot the identification (email/pass) for the admin, wich is real bad. After uninstalling the server and reinstalling it I found out that the database was not wiped. So it didn't change at all ! Please, can anyone help me finding the admin's email and password ? I'm not very familiar with progresql but res_users displays empty passwords: 回答1: You may change admin password using progresql from the terminal. You