摘要: <tbody> <t t-set="items" t-value="[0,1,2,3,4,5,6,7,8,9,10]" /> <t t-set="i" t-value="0" /> <tr t-foreach="o.order_line" t-as="l" class="gxtr"> <t t-se 阅读全文
posted @ 2017-07-11 15:17 何双新 阅读(204) 评论(0) 推荐(0) 编辑
摘要: # 取单价为最近时间的单价sql="select price_unit from sale_price_list where partner_id=%d and product_id=%d order by write_date desc limit 1"%(partner_id,product_i 阅读全文
posted @ 2017-07-11 15:12 何双新 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 二、动作按钮里面也可以由字段判断:def action_select_sale_order_line(self,cr,uid,ids,date_begin,date_end,context=None): res={} record=[] seq=1 selfobj=self.browse(cr,ui 阅读全文
posted @ 2017-07-11 14:41 何双新 阅读(948) 评论(1) 推荐(0) 编辑