Questions tagged «odoo»

14
ImportError:没有名为psycopg2的模块
在安装OpenERP 6的过程时,我想使用此命令生成一个配置文件, cd / home / openerp / openerp-server / bin / ./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg 但是总是显示一个信息 ImportError: No module named psycopg2 当我检查psycopg2软件包时,它已经安装好了, 软件包python-psycopg2-2.4.5-1.rhel5.x86_64已安装且最新版本 没事做 这怎么了 我的服务器是CentOS,我已经安装了python 2.6.7。
80 python  centos  odoo  centos5 

3
字典更新序列元素#0的长度为3;2个为必填项
我想account.bank.statement.line通过其他对象将线添加到对象,但是出现以下错误: “字典更新序列元素#0的长度为3;要求为2” 这是我的代码: def action_account_line_create(self, cr, uid, ids): res = False cash_id = self.pool.get('account.bank.statement.line') for exp in self.browse(cr, uid, ids): company_id = exp.company_id.id #statement_id = exp.statement_id.id lines = [] for l in exp.line_ids: lines.append((0, 0, { 'name': l.name, 'date': l.date, 'amount': l.amount, 'type': l.type, 'statement_id': exp.statement_id.id, 'account_id': l.account_id.id, 'account_analytic_id': l.analytic_account_id.id, …
76 python  odoo 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.