openerp

Odoo Installation on Mac Could Not Execute Command LESSC

半腔热情 提交于 2019-11-30 08:52:29
问题 So I have a mac running 10.11.4 (El Capitan). I followed this tutorial: http://kiattipong.blogspot.com/2015/05/setup-odoo-development-on-os-x-with.html?showComment=1459570104589. Actually the issues I had I posted in the comments section in this blog as well. Everything went smoothly up to about the requirements part where I got some installation errors (file not found). When I tried to run python ./odoo.py I would get missing module errors. So I manually installed some using pip install (

Odoo 8: Many2many domain filter

巧了我就是萌 提交于 2019-11-30 08:26:21
I have several organization types with a many2many relation describing which types that may be parent to other types (e.g. department can be parent to sub-department and working group). It's NOT a strict hierarchy (working group can be parent to other working groups), hence the many2many relation. I have two fields on my organization_type object: allowed_parent_type_ids and the inverse allowed_children_type_ids . Now I want to restrict the organization type field on my organization object depending on it's parent, so a child of a "department" can only select the organization types allowed to

error: command 'gcc' failed with exit status when installing psycopg2

对着背影说爱祢 提交于 2019-11-30 06:10:47
i need to install psycopg2 for openerp installation process, but i always found that error. i've already used pip and easy_install , my gcc is the latest version. Really need your help to solve my problem... this is my complete error with easy_install.. [root@server01 ~]# easy_install psycopg2 Searching for psycopg2 Reading http://pypi.python.org/simple/psycopg2/ Reading http://initd.org/psycopg/ Reading http://initd.org/projects/psycopg2 Best match: psycopg2 2.4.5 Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz Processing psycopg2-2.4.5.tar.gz Running psycopg2

Exclude an alias from virtualhost proxypass

半世苍凉 提交于 2019-11-30 00:09:06
I've following virtual host configuration. The desired result is: If someone requests http://test.myserver.com/myapp , apache serves him from /var/www/myapp And if http://test.myserver.com/ is requested, apache redirects it to port 8069. 2nd is working but 1st is not. Can someone help please! <VirtualHost *:80> ServerName test.myserver.com Alias /myapp /var/www/myapp <Directory /var/www/myapp> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ProxyPass / http://localhost:8069/ ProxyPassReverse / http://localhost:8069/ </VirtualHost> This

Method return value to call another form in OpenERP

我只是一个虾纸丫 提交于 2019-11-29 23:56:19
问题 Currently, you can set to return value of an OpenERP to the following, to get the current form to be closed: return {'type':'ir.actions.act_window_close' } Is there a return value that would open another form instead? For example, in the Product form, buttons can call a sales form or a wizard form. 回答1: Following is an example function.Maybe helpful for you def open_popup(self, cr, uid, ids, context=None): mod_obj = self.pool.get('ir.model.data') if move.parent_production_id: res = mod_obj

ReadOnly field saved with NULL value

∥☆過路亽.° 提交于 2019-11-29 16:58:38
On CRM opportunity form view, i added readonly="1" for probability field. When i saved, whatever the value of my probability, it's stored with NULL value. Is it a bug on OpenERP ? We have two values like client side and server side. In Server side coding done like float value have 0.0 etc. Read only field doesn't take value from the Client side because it's read only. In View, we see that 0.0 for float value because of server side coding. If you remove read only attribute, you can get value from the Client side and that value pass to the Server and store into the Database. Field with read only

openerp web client 6.1: how to override base javascript functions

大憨熊 提交于 2019-11-29 14:12:22
I'm looking for a way to override some openerp web js core functions such as "on_logout". The docs lack of instructions (as you can see in my post ) and the helloworld module tells you that you can do it like openerp.web_hello = function(openerp) { openerp.web.SearchView = openerp.web.SearchView.extend({ init:function() { this._super.apply(this,arguments); this.on_search.add(function(){console.log('hello');}); } }); // here you may tweak globals object, if any, and play with on_* or do_* callbacks on them openerp.web.Login = openerp.web.Login.extend({ start: function() { console.log('Hello

Odoo Installation on Mac Could Not Execute Command LESSC

一世执手 提交于 2019-11-29 08:54:37
So I have a mac running 10.11.4 (El Capitan). I followed this tutorial: http://kiattipong.blogspot.com/2015/05/setup-odoo-development-on-os-x-with.html?showComment=1459570104589 . Actually the issues I had I posted in the comments section in this blog as well. Everything went smoothly up to about the requirements part where I got some installation errors (file not found). When I tried to run python ./odoo.py I would get missing module errors. So I manually installed some using pip install ( psycopg2, reportlab, dateultil, passlib, psutil, requests) and finally I got the odoo server running.

related field on odoo?

帅比萌擦擦* 提交于 2019-11-29 06:56:46
how to add a field related on odoo I would like to add a text field on stock.move related to stock.picking origin field I tried this : _columns={ 'sourcebl': fields.related('picking_id', 'origin', type='char', relation='stock.picking', string='Class Description', store=True, readonly=True), } do you have any Idea You can find more information here : Link In the new API, there is not anymore fields.related. You should define your related field like this : sourcebl = fields.Char(string='Class Description', related='picking_id.origin') I used the old api it work fine now : _columns={ 'sourcebon':

How to make field readonly based on group and status?

∥☆過路亽.° 提交于 2019-11-28 21:31:36
I want to make field readony based on group, and status. Like i have two grops 1. Manager Group 2. User Group If I give User Group to any user then and Status Done then field will be readonly for this user. Hope I able to make it clear to understand Thank OmaL Create a functional field of type boolean. If the logged in user is under user group and state is done, then return true. Then in the view, specify attrs="{'readonly':[('boolean_field_name','=',True)]}" OR First create your form view. Then inherit the view also specify the groups. for example in sale order form view, i want to make the