Skip to Content
Menu
This question has been flagged
2406 Views

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,

 }

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 15
3482
3
Nov 16
5496
2
Jul 23
1417
2
Jun 23
971
1
Jan 22
2360