Tags


def action_button_confirm(self, cr, uid, ids, context=None):
    res_partner_obj = self.pool.get('res.partner')
    current_record_id = self.browse(cr, uid, ids, context=context)
    if current_record_id.partner_id:
        res_partner_obj.write(cr, uid, current_record_id.partner_id.id, {'customer': True})
    return super(sale_order, self).action_button_confirm(cr, uid, ids, context=context)
Advertisements