1.修改产品数量时,自动计算产品销售金额.销售成本和销售利润<field name="num" on_change="on_change_product(product, num, price)"/>2.选择历史工单时,按销售单中当前选择的客户自动过滤,打开选择历史工单窗口时,过滤条件默认为销售单中当前选择的客户<field name="work_order" domain="[('customer','=',cust…
表格行颜色:             <tree string="请假单列表" colors="red:state == 'refuse';blue:state == 'draft';black:state in ('confirm','validate')">            <tree string="Meeting" colors="gray:state in ('cancel','done');blue:…
视图(tree\form)中隐藏按钮( 创建.编辑.删除 )create="false" edit="false" delete="false" tree视图中启用编辑editable="top" (新增行在上) 或 editable="bottom" (新增行在下) 代码示例: <record model="ir.ui.view" id="dispatch_produc…
支持的视图类型:form.tree.search ... 支持的定位方法:                  <notebook position="inside">  <xpath expr="//page[@name='page_history']" position="inside">                  <field name="mobile" position="…
删除菜单示例: <delete id="base.menu_module_updates" model="ir.ui.menu"/><delete id="base.module_mi" model="ir.ui.menu"/>…
ArcGIS案例学习笔记-点集中最近点对和最远点对 联系方式:谢老师,135-4855-4328,xiexiaokui@qq.com 目的:对于点图层,查找最近的点对和最远的点对 数据: 方法: 1. PointDistance 2. NearestDistancePointPair.PointsToLines 3 FarestDistancePointPair.PointsToLine 联系方式:谢老师,135-4855-4328,xiexiaokui@qq.com…
<Cocos2d-x游戏开发实战精解>学习笔记1--在Cocos2d中显示图像 <Cocos2d-x游戏开发实战精解>学习笔记2--在Cocos2d-x中显示一行文字 之前的内容主要都是介绍如何在屏幕上显示图像,事实上除了图像之外,音乐的播放也可以被理解为一种显示的方式,本节将学习在Cocos2d-x中播放声音的方法. (1)在HelloWorld.h中对HelloWorld类进行如下定义: class HelloWorld : public Cocos2d::Layer { pu…
计算字段.关联字段,对象修改时自动变更保存(当 store=True 时),当 store=False 时,默认不支持过滤和分组7.0中非计算字段.关联字段只读时无法修改保存的问题暂未解决 示例代码:  class dispatch_work_order(osv.osv):    _name="dispatch.work_order"    _description="工单"    _order = "id asc"            def…
自己创建的: domain="[('create_uid','=',uid)]" 自己的: domain="[('employee_id','=','#kl_user_emp#')]" 本部门的: domain="[('department_id','=','#kl_user_dept#')]" 本部门及下属部门的: domain="[('department_id','child_of','#kl_user_dept#')]"…
待解决:图形中当改变分组时,图例不正确            存储比率计算时,分组合计不正确 wizard:过滤条件向导,用于输入过滤条件 wizard/sale_chart.py # -*- coding: utf-8 -*-from openerp.osv import fields, osvimport datetime class dispatch_sale_chart(osv.osv_memory):    _name = "dispatch.sale.chart"    _…