摘要: 一。在主表中#改动地方 总结算金额 求和:def _get_subtotal2(self, cr, uid, ids, field_name, arg, context=None): # 初始化 res = {} # 获取本页面单据 for order in self.browse(cr, uid, 阅读全文
posted @ 2017-06-20 08:16 何双新 阅读(1769) 评论(0) 推荐(0)
摘要: def create(self,cr,uid,vals,context=None): if context is None: context ={} print 111111 print vals[] if vals.get('lx_origin', '/') == '/' : vals['lx_o 阅读全文
posted @ 2017-06-09 10:40 何双新 阅读(1040) 评论(0) 推荐(0)
摘要: 'product_id':fields.many2one('product.product',u'产品',domain=[('sale_ok', '=', True)],required=True,),'pname': fields.related('product_id', 'pname',rel 阅读全文
posted @ 2017-06-06 08:23 何双新 阅读(274) 评论(0) 推荐(0)
摘要: <style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:12px 14px;border- 阅读全文
posted @ 2017-06-05 12:39 何双新 阅读(1320) 评论(0) 推荐(0)
摘要: sql2=" UPDATE sigining_contract SET accumulated_amount='%d',accumulated_pay='%d',discount=(contract_amount-'%d') where contract_origin='%s'"%(JT,PT,PT 阅读全文
posted @ 2017-06-04 18:37 何双新 阅读(171) 评论(0) 推荐(0)
摘要: 单独的seq。xml文件<?xml version="1.0" encoding="utf-8"?><openerp> <data noupdate="1"><!-- Sequences for demo_contract_lx --> <record id="seq_type_demo_contr 阅读全文
posted @ 2017-06-04 17:44 何双新 阅读(1520) 评论(0) 推荐(0)
摘要: #确认按钮 反写回合同页面,当前页面反写数据:def action_split_order_ht(self,cr,uid,ids,context=None): assert len(ids)==1 sigining_contract_obj=self.browse(cr,uid,ids,contex 阅读全文
posted @ 2017-06-04 17:34 何双新 阅读(547) 评论(0) 推荐(0)
摘要: <div class="oe_right oe_button_box" name="buttons"> <button class="oe_inline oe_stat_button" icon="fa-list" name="action_open_jiesuan_order" type="obj 阅读全文
posted @ 2017-06-04 17:24 何双新 阅读(1261) 评论(0) 推荐(0)
摘要: <html><body><table border="1"> <tr height="20px"> <th colspan="2">合同编号</th> <td height="20px" >January</td> <th colspan="2">合同名称</th> <td height="4px" 阅读全文
posted @ 2017-06-01 22:26 何双新 阅读(393) 评论(0) 推荐(0)
摘要: <html><body><table border="1"> <tr height="20px"> <th colspan="2">合同名称</th> <td height="20px" >January</td> <th>对方单位</th> <td height="4px" colspan="10 阅读全文
posted @ 2017-06-01 16:34 何双新 阅读(623) 评论(0) 推荐(0)