Loading

上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 46 下一页
摘要: model装饰器的作用是返回一个集合列表应用举例:定义columnslangs = fields.Selection(string="Lang",selection="_get_lang") 方法定义:@api.modeldef _get_lang(self): langs = self.en... 阅读全文
posted @ 2014-08-06 15:37 青岛欧姆网络科技 阅读(732) 评论(0) 推荐(0)
摘要: """ An environment wraps data for ORM records: - :attr:`cr`, the current database cursor; - :attr:`uid`, the current user id; ... 阅读全文
posted @ 2014-08-06 15:13 青岛欧姆网络科技 阅读(1831) 评论(1) 推荐(0)
摘要: 相对于7来说,8的api改进了不少,用官方的话来说就是更加面向对象了.下面探究一下具体的改动.准备知识:python装饰器的使用http://blog.csdn.net/thy38/article/details/4471421在8中,api接口分为traditaional style和record... 阅读全文
posted @ 2014-08-06 13:01 青岛欧姆网络科技 阅读(2338) 评论(0) 推荐(0)
摘要: sudo find . -name '*.dump' -mtime +10 -exec rm "{}" \; 阅读全文
posted @ 2014-07-29 10:54 青岛欧姆网络科技 阅读(851) 评论(0) 推荐(0)
摘要: 1.xml中应为on_change=""的形式2.py文件中 self,cr,uid,ids为必备参数,后面的参数根据xml文件中的参数的数量而定3.return的是一个字典,通过value关键字传递给前台页面.即 res={"value":{'xx':'uu'}}的形式. 阅读全文
posted @ 2014-07-25 09:52 青岛欧姆网络科技 阅读(666) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-07-23 18:08 青岛欧姆网络科技 阅读(156) 评论(0) 推荐(0)
摘要: 编辑home目录下的.bashrc文件alias xjerp="~/odoo/xj/openerp-server -r openerp --addons-path='~/odoo/xj/openerp/addons'"重启shell即可. 阅读全文
posted @ 2014-07-22 18:31 青岛欧姆网络科技 阅读(229) 评论(0) 推荐(0)
摘要: git clone address.git -b brach_name destination_floder 阅读全文
posted @ 2014-07-21 17:49 青岛欧姆网络科技 阅读(187) 评论(0) 推荐(0)
摘要: The reason causing this problem is the plugin PIL install errorto solve this problem,try this:1.clear PIL packagesrm -rf /usr/lib/python2.7/site-packa... 阅读全文
posted @ 2014-07-21 17:35 青岛欧姆网络科技 阅读(925) 评论(1) 推荐(0)
摘要: In this case,if you write some stirng in your fields which contains '' work properly ) considering this:http://stackoverflow.com/questions/6322126/wha... 阅读全文
posted @ 2014-07-20 10:50 青岛欧姆网络科技 阅读(487) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 46 下一页