Odoo8中,API接口分为traditaional style和record style两种类型: traditional style指的就是我们在7.0中使用的类型,def(self,cr,uid,ids,context)式的语法. record style 8.0及以后版本精简化参数后的风格, ...
利用GridView和ImageSwitcher的基本用法 public class MainActivity extends Activity { int[] imageIds = new int[] {R.drawable.bomb5,R.drawable.bomb6,R.drawable.bo ...
分类:
其他好文 时间:
2017-06-01 20:04:24
阅读次数:
262
操作方法:使用快捷键 option + space 或 command + y举个样例:如以下的样例,我在输入@O的时候会出现代码补全列表,这个时候我想查看列表中项目的定义能够使用快捷键 option + space 或 command + y来查看.查看方法的定义同上.使用快捷键 option + ...
分类:
移动开发 时间:
2017-06-01 13:51:34
阅读次数:
165
事件,当我们浏览完图片选中一张时,触发onchange事件将图片上传到服务器并回显、 Springmvc配置上传图片 FastDFS的Java接口使用 全局配置文件 fdfs_client.conf 工具类:FastDFSUtils 保存图片到FastDFS分布式文件系统 controller: ...
分类:
Web程序 时间:
2017-05-27 18:03:47
阅读次数:
635
这里是销售订单记录条数固定格式(self, cr, uid, ids, field_name, arg, context=None):def _sales_count(self, cr, uid, ids, field_name, arg, context=None): res = dict.fro ...
分类:
其他好文 时间:
2017-05-25 23:30:18
阅读次数:
271
<%@ livebos language='javascript' %>var ids = "-1";O_MASTER.FLoan.each(function(v) { return ids += "," + v.FParentId;});ids; ...
分类:
其他好文 时间:
2017-05-24 20:16:02
阅读次数:
154
curl-k-i-H‘content-type:application/json‘-H‘Authentication:Tokent=12345678‘-d‘{"ids":["22"]}‘"https://domain.com"
分类:
Web程序 时间:
2017-05-23 21:42:47
阅读次数:
171
1.array_walk是用于用户自定义的函数,所以想用array_walk($aIds, "trim");去掉数据元素中的空格是达不到目的的只能用array_walk($aIds, create_function('&$val', '$val = trim($val);')); 2.想完成上边的需 ...
分类:
其他好文 时间:
2017-05-23 13:09:10
阅读次数:
171
本文章是在VS2017的环境下,.net core 1.1版本以上。 在这期间,由于.net core 并不基于IIS,我们的过去的网络请求代码在.net core框架下,有可能会出现不兼容,报错的现象。这里大致介绍下在.net core 下如何进行http请求,主要仍然是GET和POST方法,有错 ...
Source: https://leetcode.com/problems/rising-temperature/#/descriptionDescription: Given a Weather table, write a SQL query to find all dates' Ids wit ...
分类:
其他好文 时间:
2017-05-21 16:05:20
阅读次数:
127