跳至内容
菜单
此问题已终结
3383 查看

this function is for create quotation.

its necessary write whole function to override method.

i want to set  subject field to total_product field.


for make in self.browse(cr, uid, ids, context=context):

vals = {

 'partner_invoice_id': partner_addr['invoice'],

 'partner_shipping_id': partner_addr['delivery'],

'date_order': fields.datetime.now(),

 'fiscal_position': fpos,

 'payment_term':payment_term,

 'note': sale_obj.get_salenote(cr, uid, [case.id], partner.id, context=context),

 'total_product' : make.subject,

 }

形象
丢弃
相关帖文 回复 查看 活动
2
12月 15
3482
3
11月 16
6623
2
7月 23
2593
2
6月 23
2201
1
1月 22
3765