Loading

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 46 下一页
摘要: As we all know, Odoo 8 has new api which is different with v7. So how to override the create,write,unlink orm method in odoo 8 way ?Let see it.if you ... 阅读全文
posted @ 2014-12-01 10:59 青岛欧姆网络科技 阅读(3727) 评论(0) 推荐(0)
摘要: JavaScript’s function scope means that all variables declared within a function are visi-ble throughout the body of the function. Curiously, this mean... 阅读全文
posted @ 2014-11-05 10:17 青岛欧姆网络科技 阅读(319) 评论(0) 推荐(0)
摘要: 首先说下起因,在修改英国会计模块(没错,就是那个安格鲁撒克逊记账模式!)中不符合中国国情的部分供能时,碰到了一个棘手的问题,简单的说就是B类继承它的父类A并重载了A的方法M,同时C类也继承了A类也重载了方法M,那么问题来了(嗯?挖掘机技术哪家强?),究竟是B的方法起作用还是C的方法起作用呢?我们一步... 阅读全文
posted @ 2014-10-31 16:34 青岛欧姆网络科技 阅读(2902) 评论(2) 推荐(1)
摘要: 一. openerp.Widget 方法列表 init:function(parent) destroy:function() appendTo:function(target) prependTo:function(target) insertAfter:function(target)... 阅读全文
posted @ 2014-10-24 08:58 青岛欧姆网络科技 阅读(381) 评论(0) 推荐(0)
摘要: stock.picking.out 和 stock.picking.in 都是继承自stock.picking新添加columns时需要注意,在stock.picking.out和stock.picking.in里新添的column必须在stock.picking里重复定义一遍,否则即使编译通过也还... 阅读全文
posted @ 2014-09-29 13:41 青岛欧姆网络科技 阅读(304) 评论(0) 推荐(0)
摘要: 在openerp安装过程中报错:psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain so... 阅读全文
posted @ 2014-08-19 10:31 青岛欧姆网络科技 阅读(780) 评论(0) 推荐(0)
摘要: python manage.py startapp polls创建model创建完model以后使用 查看sqlpython manage.py sql polls然后使用python manage.py syncdb将sql写入数据库Note:如果生成到数据库后又有对model的更改,将无法同步到... 阅读全文
posted @ 2014-08-15 09:38 青岛欧姆网络科技 阅读(453) 评论(0) 推荐(0)
摘要: shell中输入 django-admin.py startproject mysite.然后进入mysite目录,输入python manage.py runserver 0.0.0.0:8000运行在浏览器中输入:localhost:8000 阅读全文
posted @ 2014-08-14 15:27 青岛欧姆网络科技 阅读(218) 评论(0) 推荐(0)
摘要: constrains装饰用于对字段进行限制应用举例:定义列:age = fields.Integer(string="age") 方法:@api.constrains('age')def _check_age(self): if self.age<16: raise Val... 阅读全文
posted @ 2014-08-06 16:18 青岛欧姆网络科技 阅读(925) 评论(0) 推荐(0)
摘要: one装饰器的作用是对每一条记录都执行对应的方法,相当于traditional-style中的function应用举例:定义的columnsnow = fields.Datetime(compute='_compute_now')方法:@onedef _compute_now(self): s... 阅读全文
posted @ 2014-08-06 15:46 青岛欧姆网络科技 阅读(551) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 46 下一页