openerp-8

How to migrate an Openerp v7 database to Odoo v8?

筅森魡賤 提交于 2019-12-05 19:53:38
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? 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 choosing the right columns. Using pgadmin3,we can export the tables and import in our desired database of

how to integrate Odoo with MySQL

随声附和 提交于 2019-12-05 15:52:15
I am trying to integrate Odoo(openerp-8) with MySQL on ubuntu server, to get the database access instead of postgresql. But I am unable to figure out the correct way to do that. I tried this link, but it didn't help me http://openerp-team.blogspot.de/2009/08/open-erp-server-with-mysql.html Any better ideas on configuring odoo with MySQL? In Odoo apps Store One Free module Available name is "External Database Sources" This module allows you to define connections to foreign databases using ODBC, Oracle Client or SQLAlchemy. Database sources can be configured in Settings > Configuration -> Data

Changing the Filename of a Uploaded Binary File Field

荒凉一梦 提交于 2019-12-05 12:31:50
I'm using Odoo8 I have a question I used the fields.binary to upload a file/s in Odoo. But when I try to download it the filename of the uploaded file is the model name. Is it possible to change the filename of the file? And second the filters attribute in fields does not work. Black and White My Solution to this matter/problem, create first a compute field and its function .py filename = fields.Char('file name', readonly = True,store = False,compute ='legacy_doc1_getFilename') @api.one def legacy_doc1_getFilename(self): if len(self.employee_number) > 0: self.filename = str(self.employee

different view form for edit and create in odoo

瘦欲@ 提交于 2019-12-05 08:08:20
问题 I'd like to know is it possible to have different form views for edit mode and create mode in odoo ? Actually I just want to hide some elements in create mode and show it in edit mode. I've tried to using attrs like : <button name="%(print_invoice)d" string="Cetak Struk" type="action" attrs="{'invisible':[('id', '!=', False)]}" /> But when i open the form it gives me error like this : Uncaught Error: Unknown field id in domain [["id","!=",false]] Any help would be appreciated. Thank you 回答1:

One2many field on_change function can't change its own value?

若如初见. 提交于 2019-12-05 07:12:52
问题 I have these two fields. 'name' : fields.char('Name'), 'addresses' : fields.one2many('res.partner.address', 'partner','Addresses'), This function: def addresses_change(self, cr, uid, ids, name, addresses, context=None): value = {} new_addresses = [] address_pool = self.pool.get('res.partner.address') for address in address_pool.browse(cr, uid, addresses[0][2], context=context): new_addresses.append((1,address.id,{'street':'wall street','zip':'7777','partner': ids[0],'active':True})) value

How to create the Window Setup for Odoo 8.0?

雨燕双飞 提交于 2019-12-05 02:11:31
I have created so many custom module in ODOO 8.0 adones and I want to create the ODOO Setup file for that for Window installation then Which kind of steps I want to follow or does it need to require for separate software that make my Window setup file. Jainik Patel This document may helpful for you for create window .exe file for OpenERP V6 please refere the below link : https://doc.odoo.com/6.0/developer/8_24_build/ Prashant You may try this V8 to see if it can solve your problem. I've tried it on Windows 7, worked out of the box. please try below link http://sourceforge.net/projects

Powered by Odoo footer

北慕城南 提交于 2019-12-04 13:09:25
I need to change the "Powered" in "Powered by Odoo" footer to "Made", So the footer of my Odoo (Formerly OpenERP) Version 8.0-aab3d9f will be "Made by Odoo" any ideas?? First go to your Odoo web module and open below file. addons => web => views => webclient_templates.xml Now find this tag <div class="oe_footer"> and edit it like <div class="oe_footer"> Made by <a href="http://www.openerp.com" target="_blank"><span>Odoo</span></a> </div> Save it and refresh your browser. Hope you get what you want. Instead of changing directly in the core of odoo (which is not appreciated), you can create a

How do I update other fields or another models from inside compute function?

邮差的信 提交于 2019-12-04 10:52:29
问题 There are 3 classes, sync.test.subject.a which has many2many relation with sync.test.subject.b which is inherited by sync.test.subject.c . sync.test.subject.b 's separated_chars field is populated through a compute function called _compute_separated_chars which is triggered by the change of sync.test.subject.b 's chars field. The role of sync.test.subject.c is basically to set chars by its own name so that _compute_separated_chars is triggered. The problem is I can't delete leftover records

Could not display Selected Image in Odoo 9

两盒软妹~` 提交于 2019-12-04 05:54:49
问题 I have problem with image loading in product.template form view. When i upload a new image it is uploading and displaying correctly in product kanban view , but in product form view it is giving me error Could not display Selected Image as displaying in attached image Someone please tell me about why it is happening. I'll be very thankful .. 来源: https://stackoverflow.com/questions/37987347/could-not-display-selected-image-in-odoo-9

One2many field on_change function can't change its own value?

会有一股神秘感。 提交于 2019-12-03 22:28:05
I have these two fields. 'name' : fields.char('Name'), 'addresses' : fields.one2many('res.partner.address', 'partner','Addresses'), This function: def addresses_change(self, cr, uid, ids, name, addresses, context=None): value = {} new_addresses = [] address_pool = self.pool.get('res.partner.address') for address in address_pool.browse(cr, uid, addresses[0][2], context=context): new_addresses.append((1,address.id,{'street':'wall street','zip':'7777','partner': ids[0],'active':True})) value.update(name='whatever') value.update(addresses=new_addresses) return {'value':value} And these view fields